| java.lang.Object org.springframework.jca.cci.object.EisOperation org.springframework.jca.cci.object.MappingRecordOperation
All known Subclasses: org.springframework.jca.cci.object.MappingCommAreaOperation,
Inner Class :protected class RecordCreatorImpl implements RecordCreator | |
Inner Class :protected class RecordExtractorImpl implements RecordExtractor | |
Constructor Summary | |
public | MappingRecordOperation() Constructor that allows use as a JavaBean. | public | MappingRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec) Convenient constructor with ConnectionFactory and specifications
(connection and interaction). |
Method Summary | |
abstract protected Record | createInputRecord(RecordFactory recordFactory, Object inputObject) Subclasses must implement this method to generate an input Record
from an input object passed into the execute method. | public Object | execute(Object inputObject) Execute the interaction encapsulated by this operation object. | abstract protected Object | extractOutputData(Record outputRecord) Subclasses must implement this method to convert the Record returned
by CCI execution into a result object for the execute method. | public void | setOutputRecordCreator(RecordCreator creator) Set a RecordCreator that should be used for creating default output Records. |
MappingRecordOperation | public MappingRecordOperation()(Code) | | Constructor that allows use as a JavaBean.
|
MappingRecordOperation | public MappingRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec)(Code) | | Convenient constructor with ConnectionFactory and specifications
(connection and interaction).
Parameters: connectionFactory - ConnectionFactory to use to obtain connections |
createInputRecord | abstract protected Record createInputRecord(RecordFactory recordFactory, Object inputObject) throws ResourceException, DataAccessException(Code) | | Subclasses must implement this method to generate an input Record
from an input object passed into the execute method.
Parameters: inputObject - the passed-in input object the CCI input Record throws: ResourceException - if thrown by a CCI method, to be auto-convertedto a DataAccessException See Also: MappingRecordOperation.execute(Object) |
extractOutputData | abstract protected Object extractOutputData(Record outputRecord) throws ResourceException, SQLException, DataAccessException(Code) | | Subclasses must implement this method to convert the Record returned
by CCI execution into a result object for the execute method.
Parameters: outputRecord - the Record returned by CCI execution the result object throws: ResourceException - if thrown by a CCI method, to be auto-convertedto a DataAccessException See Also: MappingRecordOperation.execute(Object) |
setOutputRecordCreator | public void setOutputRecordCreator(RecordCreator creator)(Code) | | Set a RecordCreator that should be used for creating default output Records.
Default is none: CCI's Interaction.execute variant
that returns an output Record will be called.
Specify a RecordCreator here if you always need to call CCI's
Interaction.execute variant with a passed-in output Record.
This RecordCreator will then be invoked to create a default output Record instance.
See Also: javax.resource.cci.Interaction.execute(javax.resource.cci.InteractionSpecRecord) See Also: javax.resource.cci.Interaction.execute(javax.resource.cci.InteractionSpecRecordRecord) See Also: org.springframework.jca.cci.core.CciTemplate.setOutputRecordCreator |
|
|