java.lang.Object | ||
↳ | org.springframework.jca.cci.object.EisOperation | |
↳ | org.springframework.jca.cci.object.MappingRecordOperation |
Known Direct Subclasses |
EIS operation object that expects mapped input and output objects, converting to and from CCI Records.
Concrete subclasses must implement the abstract
createInputRecord(RecordFactory, Object)
and
extractOutputData(Record)
methods, to create an input
Record from an object and to convert an output Record into an object,
respectively.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MappingRecordOperation.RecordCreatorImpl | Implementation of RecordCreator that calls the enclosing
class's createInputRecord method. |
||||||||||
MappingRecordOperation.RecordExtractorImpl | Implementation of RecordExtractor that calls the enclosing
class's extractOutputData method. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that allows use as a JavaBean.
| |||||||||||
Convenient constructor with ConnectionFactory and specifications
(connection and interaction).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Execute the interaction encapsulated by this operation object.
| |||||||||||
Set a RecordCreator that should be used for creating default output Records.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses must implement this method to generate an input Record
from an input object passed into the
execute method. | |||||||||||
Subclasses must implement this method to convert the Record returned
by CCI execution into a result object for the
execute method. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jca.cci.object.EisOperation
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Constructor that allows use as a JavaBean.
Convenient constructor with ConnectionFactory and specifications (connection and interaction).
connectionFactory | ConnectionFactory to use to obtain connections |
---|
Execute the interaction encapsulated by this operation object.
inputObject | the input data, to be converted to a Record
by the createInputRecord method |
---|
extractOutputData
methodDataAccessException | if there is any problem |
---|
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.
setOutputRecordCreator(RecordCreator)
Subclasses must implement this method to generate an input Record
from an input object passed into the execute
method.
inputObject | the passed-in input object |
---|
if thrown by a CCI method, to be auto-converted to a DataAccessException | |
DataAccessException | |
ResourceException |
Subclasses must implement this method to convert the Record returned
by CCI execution into a result object for the execute
method.
outputRecord | the Record returned by CCI execution |
---|
if thrown by a CCI method, to be auto-converted to a DataAccessException | |
DataAccessException | |
ResourceException | |
SQLException |