Class MappedInteraction
java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.eis.interactions.EISInteraction
org.eclipse.persistence.eis.interactions.MappedInteraction
- All Implemented Interfaces:
Serializable
,Cloneable
,Call
- Direct Known Subclasses:
QueryStringInteraction
,XMLInteraction
Defines the specification for a call to a JCA interaction using Mapped records.
Builds the input and output records from the arguments.
- See Also:
- Author:
- James
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType
-
Field Summary
Fields inherited from class org.eclipse.persistence.eis.interactions.EISInteraction
arguments, functionName, inputRecordName, inputRow, interactionSpec, outputArgumentNames, outputArguments, outputResultPath, properties
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(String parameterAndArgumentFieldName) PUBLIC: Define the argument to the interaction and the field/argument name to be substitute for it.void
addArgument
(String parameterName, String argumentFieldName) PUBLIC: Define the argument to the interaction and the field/argument name to be substitute for it.void
addArgumentValue
(String parameterName, Object argumentValue) PUBLIC: Define the argument to the interaction and the value name to be input for it.org.eclipse.persistence.internal.sessions.AbstractRecord
buildRow
(jakarta.resource.cci.Record record, EISAccessor accessor) Build a database row from the record returned from the interaction.jakarta.resource.cci.Record
createInputRecord
(EISAccessor accessor) Create a mapped input record for this interaction.jakarta.resource.cci.Record
createTranslationRecord
(org.eclipse.persistence.internal.sessions.AbstractRecord transaltionRow, EISAccessor accessor) Create a mapped input record for this interaction.The argument names for the input record.PUBLIC: The input result path defines the root key for the MappedRecord that the interaction argument is nested into.void
setArgumentNames
(Vector argumentNames) INTERNAL: The argument names for the input record.void
setInputResultPath
(String inputResultPath) PUBLIC: The input result path defines the root key for the MappedRecord that the interaction argument is nested into.Methods inherited from class org.eclipse.persistence.eis.interactions.EISInteraction
addOutputArgument, addOutputArgument, buildRows, createRecordElement, getArguments, getFunctionName, getInputRecordName, getInputRow, getInteractionSpec, getLogString, getOutputArgumentNames, getOutputArguments, getOutputResultPath, getProperties, getProperty, hasArguments, hasOutputArguments, isEISInteraction, prepare, setArguments, setFunctionName, setInputRecordName, setInputRow, setInteractionSpec, setOutputArgumentNames, setOutputArguments, setOutputResultPath, setProperties, setProperty, toString, translate
Methods 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, createField, 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
-
inputResultPath
-
argumentNames
-
-
Constructor Details
-
MappedInteraction
public MappedInteraction()Default constructor.
-
-
Method Details
-
addArgument
PUBLIC: Define the argument to the interaction and the field/argument name to be substitute for it. This is only required if an input row is not used. The parameterAndArgumentFieldName is the name of the input record argument, and is the field or argument name to be used to pass to the interaction. These names are assumed to be the same, if not this method can be called with two arguments. -
addArgument
PUBLIC: Define the argument to the interaction and the field/argument name to be substitute for it. This is only required if an input row is not used. The parameterName is the name of the input record argument. The argumentFieldName is the field or argument name to be used to pass to the interaction. If these names are the same (as they normally are) this method can be called with a single argument. -
addArgumentValue
PUBLIC: Define the argument to the interaction and the value name to be input for it. This is only required if an input row is not used. The parameterName is the name of the input record argument. The argumentValue is the value of the input record argument. -
getInputResultPath
PUBLIC: The input result path defines the root key for the MappedRecord that the interaction argument is nested into. This is required for write interaction that take the row build from the mapped object and need the input to contain that row record as part of the input, instead of the entire input. -
setInputResultPath
PUBLIC: The input result path defines the root key for the MappedRecord that the interaction argument is nested into. This is required for write interaction that take the row build from the mapped object and need the input to contain that row record as part of the input, instead of the entire input. -
getArgumentNames
The argument names for the input record. -
setArgumentNames
INTERNAL: The argument names for the input record. -
createInputRecord
Create a mapped input record for this interaction. Populate the data into the record from this interaction's arguments.- Specified by:
createInputRecord
in classEISInteraction
-
createTranslationRecord
public jakarta.resource.cci.Record createTranslationRecord(org.eclipse.persistence.internal.sessions.AbstractRecord transaltionRow, EISAccessor accessor) Create a mapped input record for this interaction. Populate the data into the record from this interaction's translation row. -
buildRow
public org.eclipse.persistence.internal.sessions.AbstractRecord buildRow(jakarta.resource.cci.Record record, EISAccessor accessor) Build a database row from the record returned from the interaction.- Specified by:
buildRow
in classEISInteraction
-