01: package net.xoetrope.optional.data.sql;
02:
03: import java.sql.Connection;
04:
05: import net.xoetrope.optional.pool.PoolManager;
06:
07: /**
08: * <p>A data connection associated with a named set of connection parameters</p>
09: * <p>Copyright: Copyright (c) 2003<br>
10: * License: see license.txt</p>
11: * $Revision: 1.1 $
12: */
13: public class NamedConnectionObject extends ConnectionObject {
14: private ConnectionObject connObj = null;
15: private String connectionName;
16:
17: /**
18: * Construct a new named connection
19: * @param name the connection name
20: * @param conn the connection
21: * @param pool the pool manager for this connections
22: */
23: public NamedConnectionObject(String name, Connection conn,
24: PoolManager pool) {
25: super (conn, pool);
26: connectionName = name;
27: }
28:
29: /**
30: * Get the name of this connection object
31: * @return the connection name
32: */
33: public String getName() {
34: return connectionName;
35: }
36: }
|