| org.springframework.jca.cci.core.CciOperations
All known Subclasses: org.springframework.jca.cci.core.CciTemplate,
CciOperations | public interface CciOperations (Code) | | Interface that specifies a basic set of CCI operations on an EIS.
Implemented by CciTemplate. Not often used, but a useful option
to enhance testability, as it can easily be mocked or stubbed.
Alternatively, the standard CCI infrastructure can be mocked.
However, mocking this interface constitutes significantly less work.
author: Juergen Hoeller since: 1.2 See Also: CciTemplate |
Method Summary | |
Object | execute(ConnectionCallback action) Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Connection. | Object | execute(InteractionCallback action) Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Interaction. | Record | execute(InteractionSpec spec, Record inputRecord) Execute the specified interaction on an EIS with CCI. | void | execute(InteractionSpec spec, Record inputRecord, Record outputRecord) Execute the specified interaction on an EIS with CCI. | Record | execute(InteractionSpec spec, RecordCreator inputCreator) Execute the specified interaction on an EIS with CCI. | Object | execute(InteractionSpec spec, Record inputRecord, RecordExtractor outputExtractor) Execute the specified interaction on an EIS with CCI. | Object | execute(InteractionSpec spec, RecordCreator inputCreator, RecordExtractor outputExtractor) Execute the specified interaction on an EIS with CCI. |
execute | Object execute(ConnectionCallback action) throws DataAccessException(Code) | | Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Connection. This allows for implementing arbitrary
data access operations, within Spring's managed CCI environment:
that is, participating in Spring-managed transactions and converting
JCA ResourceExceptions into Spring's DataAccessException hierarchy.
The callback action can return a result object, for example a
domain object or a collection of domain objects.
Parameters: action - the callback object that specifies the action the result object returned by the action, if any throws: DataAccessException - if there is any problem |
execute | Object execute(InteractionCallback action) throws DataAccessException(Code) | | Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Interaction. This allows for implementing arbitrary
data access operations on a single Interaction, within Spring's managed
CCI environment: that is, participating in Spring-managed transactions
and converting JCA ResourceExceptions into Spring's DataAccessException
hierarchy.
The callback action can return a result object, for example a
domain object or a collection of domain objects.
Parameters: action - the callback object that specifies the action the result object returned by the action, if any throws: DataAccessException - if there is any problem |
execute | Record execute(InteractionSpec spec, Record inputRecord) throws DataAccessException(Code) | | Execute the specified interaction on an EIS with CCI.
Parameters: spec - the CCI InteractionSpec instance that definesthe interaction (connector-specific) Parameters: inputRecord - the input record the output record throws: DataAccessException - if there is any problem |
execute | void execute(InteractionSpec spec, Record inputRecord, Record outputRecord) throws DataAccessException(Code) | | Execute the specified interaction on an EIS with CCI.
Parameters: spec - the CCI InteractionSpec instance that definesthe interaction (connector-specific) Parameters: inputRecord - the input record Parameters: outputRecord - the output record throws: DataAccessException - if there is any problem |
execute | Record execute(InteractionSpec spec, RecordCreator inputCreator) throws DataAccessException(Code) | | Execute the specified interaction on an EIS with CCI.
Parameters: spec - the CCI InteractionSpec instance that definesthe interaction (connector-specific) Parameters: inputCreator - object that creates the input record to use the output record throws: DataAccessException - if there is any problem |
execute | Object execute(InteractionSpec spec, Record inputRecord, RecordExtractor outputExtractor) throws DataAccessException(Code) | | Execute the specified interaction on an EIS with CCI.
Parameters: spec - the CCI InteractionSpec instance that definesthe interaction (connector-specific) Parameters: inputRecord - the input record Parameters: outputExtractor - object to convert the output record to a result object the output data extracted with the RecordExtractor object throws: DataAccessException - if there is any problem |
execute | Object execute(InteractionSpec spec, RecordCreator inputCreator, RecordExtractor outputExtractor) throws DataAccessException(Code) | | Execute the specified interaction on an EIS with CCI.
Parameters: spec - the CCI InteractionSpec instance that definesthe interaction (connector-specific) Parameters: inputCreator - object that creates the input record to use Parameters: outputExtractor - object to convert the output record to a result object the output data extracted with the RecordExtractor object throws: DataAccessException - if there is any problem |
|
|