Module org.eclipse.persistence.core
Class XMLInteraction
java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.eis.interactions.EISInteraction
org.eclipse.persistence.eis.interactions.MappedInteraction
org.eclipse.persistence.eis.interactions.XMLInteraction
- All Implemented Interfaces:
Serializable,Cloneable,Call
- Direct Known Subclasses:
XQueryInteraction
Defines the specification for a call to a JCA interaction that uses XML.
Builds the input and output XML records from the arguments.
This extends MappedInteraction to allow for mapped style of argument input and output.
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
DatasourceCall.ParameterType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe root element name to use for the input DOM.protected StringThe root element name to use for the output DOM.Fields inherited from class org.eclipse.persistence.eis.interactions.MappedInteraction
argumentNames, inputResultPathFields inherited from class org.eclipse.persistence.eis.interactions.EISInteraction
arguments, functionName, inputRecordName, inputRow, interactionSpec, outputArgumentNames, outputArguments, outputResultPath, propertiesFields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
EXECUTE_UPDATE, isNativeConnectionRequired, isPrepared, NO_RETURN, outputCursors, parameterBindings, parameters, parameterTypes, query, RETURN_CURSOR, RETURN_MANY_ROWS, RETURN_ONE_ROW, returnType, shouldProcessTokenInQuotes, usesBinding -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildRow(Record record, EISAccessor accessor) Build a database row from the record returned from the interaction.buildRows(Record record, EISAccessor accessor) Build a collection of database rows from the Record returned from the interaction.protected DatabaseFieldcreateField(String fieldName) INTERNAL:createInputDOM(EISAccessor accessor) Create a DOM for this interaction.createInputRecord(EISAccessor accessor) Create a DOM input record for this interaction.protected XMLRecordcreateXMLRecord(String rootName) INTERNAL: Use the createRecord method on ObjectBuilder in case the root element is namespace qualifiedPUBLIC: Return the root element name to use for the input DOM.getLogString(Accessor accessor) Return the string for logging purposes.PUBLIC: Return the root element name to use for the output DOM.voidprepare(AbstractSession session) Set the default record name from the descriptor.voidsetInputRootElementName(String inputRootElementName) PUBLIC: Set the root element name to use for the input DOM.voidsetOutputRootElementName(String outputRootElementName) PUBLIC: Set the root element name to use for the output DOM.Methods inherited from class org.eclipse.persistence.eis.interactions.MappedInteraction
addArgument, addArgument, addArgumentValue, createTranslationRecord, getArgumentNames, getInputResultPath, setArgumentNames, setInputResultPathMethods inherited from class org.eclipse.persistence.eis.interactions.EISInteraction
addOutputArgument, addOutputArgument, createRecordElement, getArguments, getFunctionName, getInputRecordName, getInputRow, getInteractionSpec, getOutputArgumentNames, getOutputArguments, getOutputResultPath, getProperties, getProperty, hasArguments, hasOutputArguments, isEISInteraction, setArguments, setFunctionName, setInputRecordName, setInputRow, setInteractionSpec, setOutputArgumentNames, setOutputArguments, setOutputResultPath, setProperties, setProperty, toString, translateMethods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
appendIn, appendIn, appendIn, appendInOut, appendInOut, appendInOut, appendInOut, appendInOut, appendLiteral, appendLiteral, appendLiteral, appendModify, appendModify, appendModify, appendOut, appendOut, appendOut, appendOutCursor, appendOutCursor, appendParameter, appendTranslation, appendTranslation, appendTranslation, areManyRowsReturned, argumentMarker, buildNewQueryMechanism, buildQueryMechanism, clone, createInOutParameter, getOutputCursors, getParameterBindings, getParameters, getParameterTypes, getQuery, getQueryString, getReturnType, getValueForInOutParameter, getValueForInParameter, hasOutputCursors, hasParameters, isCursorReturned, isExecuteUpdate, isFinished, isJPQLCall, isNativeConnectionRequired, isNothingReturned, isOneRowReturned, isOutputParameterType, isPrepared, isQueryStringCall, isReturnSet, isSQLCall, isStoredFunctionCall, isStoredPLSQLFunctionCall, isStoredPLSQLProcedureCall, isStoredProcedureCall, isUsesBindingSet, returnCursor, returnManyRows, returnNothing, returnOneRow, setExecuteUpdate, setIsNativeConnectionRequired, setIsPrepared, setParameterBindings, setParameters, setParameterTypes, setQuery, setQueryString, setReturnType, setUsesBinding, translateCustomQuery, translatePureSQLCustomQuery, translateQueryString, translateQueryStringAndBindParameters, translateQueryStringForParameterizedIN, usesBinding, usesBinding, usesBinding, whitespace
-
Field Details
-
inputRootElementName
The root element name to use for the input DOM. -
outputRootElementName
The root element name to use for the output DOM.
-
-
Constructor Details
-
XMLInteraction
public XMLInteraction()Default constructor.
-
-
Method Details
-
getInputRootElementName
PUBLIC: Return the root element name to use for the input DOM. -
setInputRootElementName
PUBLIC: Set the root element name to use for the input DOM. -
getOutputRootElementName
PUBLIC: Return the root element name to use for the output DOM. -
setOutputRootElementName
PUBLIC: Set the root element name to use for the output DOM. -
prepare
Set the default record name from the descriptor.- Overrides:
preparein classEISInteraction
-
createInputRecord
Create a DOM input record for this interaction. Convert the database row or arguments into an XML DOM tree.- Overrides:
createInputRecordin classMappedInteraction
-
createInputDOM
Create a DOM for this interaction. Convert the database row or arguments into an XML DOM tree. -
buildRow
Build a database row from the record returned from the interaction.- Overrides:
buildRowin classMappedInteraction
-
buildRows
Build a collection of database rows from the Record returned from the interaction.- Overrides:
buildRowsin classEISInteraction
-
getLogString
Return the string for logging purposes.- Specified by:
getLogStringin interfaceCall- Overrides:
getLogStringin classEISInteraction
-
createField
INTERNAL:- Overrides:
createFieldin classDatasourceCall
-
createXMLRecord
INTERNAL: Use the createRecord method on ObjectBuilder in case the root element is namespace qualified
-