Package javax.resource.cci

Examples of javax.resource.cci.RecordFactory


   * @see #getRecordFactory(javax.resource.cci.ConnectionFactory)
   * @see javax.resource.cci.RecordFactory#createMappedRecord(String)
   */
  public MappedRecord createMappedRecord(String name) throws DataAccessException {
    try {
      RecordFactory recordFactory = getRecordFactory(getConnectionFactory());
      return recordFactory.createMappedRecord(name);
    }
    catch (NotSupportedException ex) {
      throw new RecordTypeNotSupportedException("Creation of mapped Record not supported by connector", ex);
    }
    catch (ResourceException ex) {
View Full Code Here


   * @see #getRecordFactory(javax.resource.cci.ConnectionFactory)
   * @see RecordCreator#createRecord(javax.resource.cci.RecordFactory)
   */
  protected Record createRecord(RecordCreator recordCreator) throws DataAccessException {
    try {
      RecordFactory recordFactory = getRecordFactory(getConnectionFactory());
      return recordCreator.createRecord(recordFactory);
    }
    catch (NotSupportedException ex) {
      throw new RecordTypeNotSupportedException(
          "Creation of the desired Record type not supported by connector", ex);
View Full Code Here

TOP

Related Classes of javax.resource.cci.RecordFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.