org.springframework.jca.cci.core

Interface RecordCreator

    • Method Detail

      • createRecord

        Record createRecord(RecordFactory recordFactory)
                     throws ResourceException,
                            DataAccessException
        Create a CCI Record instance, usually based on the passed-in CCI RecordFactory.

        For use as input creator with CciTemplate's execute methods, this method should create a populated Record instance. For use as output Record creator, it should return an empty Record instance.

        Parameters:
        recordFactory - the CCI RecordFactory (never null, but not guaranteed to be supported by the connector: its create methods might throw NotSupportedException)
        Returns:
        the Record instance
        Throws:
        ResourceException - if thrown by a CCI method, to be auto-converted to a DataAccessException
        DataAccessException - in case of custom exceptions