KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ersatz > resourceadapter > RecordFactoryImpl


1 /*
2  * Created on March 3, 2004
3  *
4  * RecordFactoryImpl.java is used to test the J2EE Connector
5  * as implemented by JOnAS. This class implements the RecordFactory
6  * (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 Kruse
17  *
18  * Jtest Resource Adapter
19  *
20  * used to test the J2EE Connector as implemented by JOnAS.
21  *
22  */

23 public class RecordFactoryImpl
24         implements RecordFactory
25 {
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 ResourceException
35     {
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 ResourceException
43     {
44         ResourceException nse = new ResourceException(
45             "RecordFactory is not currently supported");
46         Utility.log(cName+".createIndexedRecord "+nse);
47         throw nse;
48     }
49 }
50
Popular Tags