Package org.apache.ofbiz.entity.util
Class EntitySaxReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.ofbiz.entity.util.EntitySaxReader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
SAX XML Parser Content Handler for Entity Engine XML files
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
EntitySaxReader
(Delegator delegator) EntitySaxReader
(Delegator delegator, int transactionTimeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] values, int offset, int count) void
endElement
(String namespaceURI, String localName, String fullNameString) void
error
(SAXParseException exception) void
fatalError
(SAXParseException exception) Gets message list.int
Gets transaction timeout.long
Parse long.long
Parse long.void
setCheckDataOnly
(boolean checkDataOnly) Sets check data only.void
setContinueOnFail
(boolean continueOnFail) Sets continue on fail.void
setCreateDummyFks
(boolean createDummyFks) Sets create dummy fks.void
setDisableEeca
(boolean disableEeca) Sets disable eeca.void
setDocumentLocator
(Locator locator) void
setMaintainTxStamps
(boolean maintainTxStamps) Sets maintain tx stamps.void
setPlaceholderValues
(Map<String, Object> placeholderValues) Sets placeholder values.void
setTransactionTimeout
(int transactionTimeout) Sets transaction timeout.void
setUseTryInsertMethod
(boolean value) Sets use try insert method.void
startElement
(String namepsaceURI, String localName, String fullNameString, Attributes attributes) void
warning
(SAXParseException exception) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
DEFAULT_TX_TIMEOUT
public static final int DEFAULT_TX_TIMEOUT- See Also:
-
-
Constructor Details
-
EntitySaxReader
protected EntitySaxReader() -
EntitySaxReader
-
EntitySaxReader
-
-
Method Details
-
getTransactionTimeout
public int getTransactionTimeout()Gets transaction timeout.- Returns:
- the transaction timeout
-
setUseTryInsertMethod
public void setUseTryInsertMethod(boolean value) Sets use try insert method.- Parameters:
value
- the value
-
setTransactionTimeout
Sets transaction timeout.- Parameters:
transactionTimeout
- the transaction timeout- Throws:
GenericTransactionException
- the generic transaction exception
-
setMaintainTxStamps
public void setMaintainTxStamps(boolean maintainTxStamps) Sets maintain tx stamps.- Parameters:
maintainTxStamps
- the maintain tx stamps
-
setCreateDummyFks
public void setCreateDummyFks(boolean createDummyFks) Sets create dummy fks.- Parameters:
createDummyFks
- the create dummy fks
-
setCheckDataOnly
public void setCheckDataOnly(boolean checkDataOnly) Sets check data only.- Parameters:
checkDataOnly
- the check data only
-
setContinueOnFail
public void setContinueOnFail(boolean continueOnFail) Sets continue on fail.- Parameters:
continueOnFail
- the continue on fail
-
setPlaceholderValues
Sets placeholder values.- Parameters:
placeholderValues
- the placeholder values
-
getMessageList
Gets message list.- Returns:
- the message list
-
setDisableEeca
public void setDisableEeca(boolean disableEeca) Sets disable eeca.- Parameters:
disableEeca
- the disable eeca
-
parse
Parse long.- Parameters:
content
- the content- Returns:
- the long
- Throws:
SAXException
- the sax exceptionIOException
- the io exception
-
parse
Parse long.- Parameters:
location
- the location- Returns:
- the long
- Throws:
SAXException
- the sax exceptionIOException
- the io exception
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String fullNameString) throws SAXException - Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classDefaultHandler
-
startElement
public void startElement(String namepsaceURI, String localName, String fullNameString, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-