Class IndexedInteraction
java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.eis.interactions.EISInteraction
org.eclipse.persistence.eis.interactions.IndexedInteraction
- All Implemented Interfaces:
Serializable,Cloneable,Call
Defines the specification for a call to a JCA interaction that uses indexed 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, 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 TypeMethodDescriptionvoidaddArgument(String argumentFieldName) PUBLIC: Define the argument to the interaction for the index argument.voidaddArgumentValue(Object argumentValue) PUBLIC: Define the argument to the interaction for the index argument.voidaddOutputArgument(String argumentFieldName) PUBLIC: Define the field/argument name to be substitute for the index output argument.org.eclipse.persistence.internal.sessions.AbstractRecordbuildRow(jakarta.resource.cci.Record record, EISAccessor accessor) Build a database row from the record returned from the interaction.jakarta.resource.cci.RecordcreateInputRecord(EISAccessor accessor) Create an indexed input record for this interaction.The arguments are the values in order of occurance in the record.The output arguments in order of occurance in the record.voidsetArguments(Vector arguments) The arguments are the values in order of occurance in the record.voidsetOutputArguments(Vector outputArguments) The output arguments in order of occurance in the record.Methods inherited from class org.eclipse.persistence.eis.interactions.EISInteraction
addOutputArgument, buildRows, createRecordElement, getFunctionName, getInputRecordName, getInputRow, getInteractionSpec, getLogString, getOutputArgumentNames, getOutputResultPath, getProperties, getProperty, hasArguments, hasOutputArguments, isEISInteraction, prepare, setFunctionName, setInputRecordName, setInputRow, setInteractionSpec, setOutputArgumentNames, 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, 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
-
Constructor Details
-
IndexedInteraction
public IndexedInteraction()Default constructor.
-
-
Method Details
-
addArgument
PUBLIC: Define the argument to the interaction for the index argument. This must be called in the order of the arguments in the input indexed record. The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value. -
addArgumentValue
PUBLIC: Define the argument to the interaction for the index argument. This must be called in the order of the arguments in the input indexed record. The argumentValue is the value of the argument to be used to pass to the interaction. -
addOutputArgument
PUBLIC: Define the field/argument name to be substitute for the index output argument. This must be called in the order of the output arguments in the result indexed record. The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.- Overrides:
addOutputArgumentin classEISInteraction
-
getArguments
The arguments are the values in order of occurance in the record.- Overrides:
getArgumentsin classEISInteraction
-
getOutputArguments
The output arguments in order of occurance in the record.- Overrides:
getOutputArgumentsin classEISInteraction
-
setArguments
The arguments are the values in order of occurance in the record.- Overrides:
setArgumentsin classEISInteraction
-
setOutputArguments
The output arguments in order of occurance in the record.- Overrides:
setOutputArgumentsin classEISInteraction
-
createInputRecord
Create an indexed input record for this interaction. Populate the data into the record from this interaction's arguments.- Specified by:
createInputRecordin classEISInteraction
-
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. Also handles MappedRecords for case of input being indexed but mapped ouput.- Specified by:
buildRowin classEISInteraction
-