|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CciOperations
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.
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. |
Record |
execute(InteractionSpec spec,
RecordCreator inputCreator)
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. |
void |
execute(InteractionSpec spec,
Record inputRecord,
Record outputRecord)
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. |
Method Detail |
---|
Object execute(ConnectionCallback 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 action
DataAccessException
- if there is any problemObject execute(InteractionCallback 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 action
DataAccessException
- if there is any problemRecord execute(InteractionSpec spec, Record inputRecord) throws DataAccessException
spec
- the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputRecord
- the input record
DataAccessException
- if there is any problemvoid execute(InteractionSpec spec, Record inputRecord, Record outputRecord) throws DataAccessException
spec
- the CCI InteractionSpec instance that defines
the interaction (connector-specific)inputRecord
- the input recordoutputRecord
- the output record
DataAccessException
- if there is any problemRecord execute(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 use
DataAccessException
- if there is any problemObject execute(InteractionSpec spec, Record inputRecord, RecordExtractor 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 object
DataAccessException
- if there is any problemObject execute(InteractionSpec spec, RecordCreator inputCreator, RecordExtractor 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 object
DataAccessException
- if there is any problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |