类 CciTemplate

  • 所有已实现的接口:
    CciOperations

    public class CciTemplate
    extends Object
    implements CciOperations
    This is the central class in the CCI core package. It simplifies the use of CCI and helps to avoid common errors. It executes core CCI workflow, leaving application code to provide parameters to CCI and extract results. This class executes EIS queries or updates, catching ResourceExceptions and translating them to the generic exception hierarchy defined in the org.springframework.dao package.

    Code using this class can pass in and receive Record instances, or alternatively implement callback interfaces for creating input Records and extracting result objects from output Records (or CCI ResultSets).

    Can be used within a service implementation via direct instantiation with a ConnectionFactory reference, or get prepared in an application context and given to services as bean reference. Note: The ConnectionFactory should always be configured as a bean in the application context, in the first case given to the service directly, in the second case to the prepared template.

    从以下版本开始:
    1.2
    作者:
    Thierry Templier, Juergen Hoeller
    另请参阅:
    RecordCreator, RecordExtractor