01: /*
02: * Created on March 3, 2004
03: *
04: * RecordFactoryImpl.java is used to test the J2EE Connector
05: * as implemented by JOnAS. This class implements the RecordFactory
06: * (cci) classes.
07: *
08: */
09: 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: /**
17: * @author Bob Kruse
18: *
19: * Jtest Resource Adapter
20: *
21: * used to test the J2EE Connector as implemented by JOnAS.
22: *
23: */
24: public class RecordFactoryImpl implements RecordFactory {
25:
26: String cName = "RecordFactoryImpl";
27:
28: public RecordFactoryImpl() {
29: Utility.log(cName
30: + ".constructor (error: should never get here!");
31: }
32:
33: public MappedRecord createMappedRecord(String recordName)
34: throws ResourceException {
35: ResourceException nse = new ResourceException(
36: "RecordFactory is not currently supported");
37: Utility.log(cName + ".createIndexedRecord " + nse);
38: throw nse;
39: }
40:
41: public IndexedRecord createIndexedRecord(String recordName)
42: throws ResourceException {
43: ResourceException nse = new ResourceException(
44: "RecordFactory is not currently supported");
45: Utility.log(cName + ".createIndexedRecord " + nse);
46: throw nse;
47: }
48: }
|