public interface CciOperations
Alternatively, the standard CCI infrastructure can be mocked. However, mocking this interface constitutes significantly less work.
CciTemplate| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(ConnectionCallback<T> action)
Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Connection.
|
<T> T |
execute(InteractionCallback<T> action)
Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Interaction.
|
javax.resource.cci.Record |
execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord)
Execute the specified interaction on an EIS with CCI.
|
javax.resource.cci.Record |
execute(javax.resource.cci.InteractionSpec spec,
RecordCreator inputCreator)
Execute the specified interaction on an EIS with CCI.
|
<T> T |
execute(javax.resource.cci.InteractionSpec spec,
RecordCreator inputCreator,
RecordExtractor<T> outputExtractor)
Execute the specified interaction on an EIS with CCI.
|
void |
execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord,
javax.resource.cci.Record outputRecord)
Execute the specified interaction on an EIS with CCI.
|
<T> T |
execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord,
RecordExtractor<T> outputExtractor)
Execute the specified interaction on an EIS with CCI.
|
<T> T execute(ConnectionCallback<T> action) throws DataAccessException
The callback action can return a result object, for example a domain object or a collection of domain objects.
action - the callback object that specifies the actionDataAccessException - if there is any problem<T> T execute(InteractionCallback<T> action) throws DataAccessException
The callback action can return a result object, for example a domain object or a collection of domain objects.
action - the callback object that specifies the actionDataAccessException - if there is any problemjavax.resource.cci.Record execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord)
throws DataAccessException
spec - the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputRecord - the input recordDataAccessException - if there is any problemvoid execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord,
javax.resource.cci.Record outputRecord)
throws DataAccessException
spec - the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputRecord - the input recordoutputRecord - the output recordDataAccessException - if there is any problemjavax.resource.cci.Record execute(javax.resource.cci.InteractionSpec spec,
RecordCreator inputCreator)
throws DataAccessException
spec - the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputCreator - object that creates the input record to useDataAccessException - if there is any problem<T> T execute(javax.resource.cci.InteractionSpec spec,
javax.resource.cci.Record inputRecord,
RecordExtractor<T> outputExtractor)
throws DataAccessException
spec - the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputRecord - the input recordoutputExtractor - object to convert the output record to a result objectDataAccessException - if there is any problem<T> T execute(javax.resource.cci.InteractionSpec spec,
RecordCreator inputCreator,
RecordExtractor<T> outputExtractor)
throws DataAccessException
spec - the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputCreator - object that creates the input record to useoutputExtractor - object to convert the output record to a result objectDataAccessException - if there is any problemCopyright © 2015. All rights reserved.