javax.resource.cci

Interface RecordFactory


  • public interface RecordFactory
    The RecordFactory interface is used for creating MappedRecord and IndexedRecord instances. Note that the RecordFactory is only used for creation of generic record instances. A CCI implementation provides an implementation class for the RecordFactory interface.
    Since:
    0.8
    Author:
    Rahul Sharma
    See Also:
    IndexedRecord, MappedRecord
    • Method Detail

      • createMappedRecord

        MappedRecord createMappedRecord(String recordName)
                                 throws ResourceException
        Creates a MappedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.
        Parameters:
        recordName - Name of the Record
        Returns:
        MappedRecord
        Throws:
        ResourceException - Failed to create a MappedRecord. Example error cases are:
        • Invalid specification of record name
        • Resource adapter internal error
        • Failed to access metadata repository
        NotSupportedException - Operation not supported
      • createIndexedRecord

        IndexedRecord createIndexedRecord(String recordName)
                                   throws ResourceException
        Creates a IndexedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.
        Parameters:
        recordName - Name of the Record
        Returns:
        IndexedRecord
        Throws:
        ResourceException - Failed to create an IndexedRecord. Example error cases are:
        • Invalid specification of record name
        • Resource adapter internal error
        • Failed to access metadata repository
        NotSupportedException - Operation not supported

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/resource/cci/recordfactory.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.