1 /*2 * Created on March 3, 20043 *4 * RecordFactoryImpl.java is used to test the J2EE Connector5 * as implemented by JOnAS. This class implements the RecordFactory6 * (cci) classes.7 * 8 */9 package ersatz.resourceadapter;10 11 import javax.resource.cci.RecordFactory;12 import javax.resource.cci.MappedRecord;13 import javax.resource.cci.IndexedRecord;14 import javax.resource.ResourceException;15 /**16 * @author Bob Kruse17 *18 * Jtest Resource Adapter19 *20 * used to test the J2EE Connector as implemented by JOnAS.21 * 22 */23 public class RecordFactoryImpl 24 implements RecordFactory25 {26 27 String cName = "RecordFactoryImpl";28 29 public RecordFactoryImpl() {30 Utility.log(cName+".constructor (error: should never get here!");31 }32 33 public MappedRecord createMappedRecord(String recordName)34 throws ResourceException35 {36 ResourceException nse = new ResourceException(37 "RecordFactory is not currently supported");38 Utility.log(cName+".createIndexedRecord "+nse);39 throw nse;40 }41 public IndexedRecord createIndexedRecord(String recordName)42 throws ResourceException43 {44 ResourceException nse = new ResourceException(45 "RecordFactory is not currently supported");46 Utility.log(cName+".createIndexedRecord "+nse);47 throw nse;48 }49 }50