01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package javax.resource.cci;
23:
24: /**
25: * The ResourceAdaptetMetaData provides information about the resource adapters
26: * implementation.
27: *
28: * The resource adapter does not require an active connection to exist in order
29: * for the client to retrieve and use this data.
30: * @version $Revision: 57196 $
31: */
32: public interface ResourceAdapterMetaData {
33: /**
34: * Gets the resource adapter's name.
35: *
36: * @return Resource adapter name.
37: */
38: public String getAdapterName();
39:
40: /**
41: * Gets the resource adapter's short description.
42: *
43: * @return Resource adapter short description.
44: */
45: public String getAdapterShortDescription();
46:
47: /**
48: * Gets the resource adapter vendor's name.
49: *
50: * @return Resource adapter vendor name.
51: */
52: public String getAdapterVendorName();
53:
54: /**
55: * Gets the resource adapter version.
56: *
57: * @return Resource adapter version.
58: */
59: public String getAdapterVersion();
60:
61: /**
62: * Gets information on the InteractionSpec types supported by this resource
63: * adapter.
64: *
65: * @return Array of InteractionSpec names supported.
66: */
67: public String[] getInteractionSpecsSupported();
68:
69: /**
70: * Gets the Connector specification version supported by this adapter.
71: *
72: * @return Connector specification version.
73: */
74: public String getSpecVersion();
75:
76: /**
77: * Returns true if the resource adapter Interaction implementation supports
78: * the method boolean execute( InteractionSpec spec, Record input, Record
79: * output ), otherwise returns false
80: */
81: public boolean supportsExecuteWithInputAndOutputRecord();
82:
83: /**
84: * Returns true if the resource adapter Interaction implementation supports
85: * the method boolean execute( InteractionSpec spec, Record input ),
86: * otherwise returns false
87: */
88: public boolean supportsExecuteWithInputRecordOnly();
89:
90: /**
91: * Returns true if the resource adapter implementation implements the
92: * LocalTransaction interface and supports local transaction demarcation.
93: */
94: public boolean supportsLocalTransactionDemarcation();
95: }
|