01: package net.bagaluten.jca.lucene.connector.impl;
02:
03: import javax.resource.ResourceException;
04: import javax.resource.spi.ManagedConnectionMetaData;
05:
06: public class LuceneManagedConnectionMetaData implements
07: ManagedConnectionMetaData {
08:
09: /** Default instance of the class */
10: public static final LuceneManagedConnectionMetaData INSTANCE = new LuceneManagedConnectionMetaData();
11:
12: /*
13: * @see javax.resource.spi.ManagedConnectionMetaData#getEISProductName()
14: */
15: public String getEISProductName() throws ResourceException {
16: return "Lucene EIS";
17: }
18:
19: /*
20: * @see javax.resource.spi.ManagedConnectionMetaData#getEISProductVersion()
21: */
22: public String getEISProductVersion() throws ResourceException {
23: return "2.0";
24: }
25:
26: /*
27: * @see javax.resource.spi.ManagedConnectionMetaData#getMaxConnections()
28: */
29: public int getMaxConnections() throws ResourceException {
30: return 0;
31: }
32:
33: /*
34: * @see javax.resource.spi.ManagedConnectionMetaData#getUserName()
35: */
36: public String getUserName() throws ResourceException {
37: return "Unknown";
38: }
39:
40: }
|