org.xorm.datastore
Class ConnectionInfo
java.lang.Object
|
+--org.xorm.datastore.ConnectionInfo
- All Implemented Interfaces:
- Configurable
- Direct Known Subclasses:
- HeapConnectionInfo, SQLConnectionInfo, XMLConnectionInfo
- public abstract class ConnectionInfo
- extends Object
- implements Configurable
This is the base class for connection information. A ConnectionInfo
object is used to acquire a DatastoreDriver instance. The attributes
of this class may or may not be useful to subclasses, but they reflect
the configuration detail that is standard in JDO.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionUserName
protected String connectionUserName
connectionPassword
protected String connectionPassword
connectionURL
protected String connectionURL
connectionDriverName
protected String connectionDriverName
connectionFactoryName
protected String connectionFactoryName
connectionFactory2Name
protected String connectionFactory2Name
connectionFactory
protected Object connectionFactory
connectionFactory2
protected Object connectionFactory2
minPool
protected int minPool
maxPool
protected int maxPool
msWait
protected int msWait
properties
protected Properties properties
factory
protected InterfaceManagerFactory factory
ConnectionInfo
public ConnectionInfo()
setFactory
public void setFactory(InterfaceManagerFactory factory)
- Specified by:
setFactory
in interface Configurable
getProperties
public Properties getProperties()
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface Configurable
setConnectionUserName
public void setConnectionUserName(String s)
getConnectionUserName
public String getConnectionUserName()
setConnectionPassword
public void setConnectionPassword(String s)
setConnectionURL
public void setConnectionURL(String s)
getConnectionURL
public String getConnectionURL()
setConnectionDriverName
public void setConnectionDriverName(String s)
getConnectionDriverName
public String getConnectionDriverName()
getMaxPool
public int getMaxPool()
setMaxPool
public void setMaxPool(int i)
getMinPool
public int getMinPool()
setMinPool
public void setMinPool(int i)
getMsWait
public int getMsWait()
setMsWait
public void setMsWait(int i)
setConnectionFactoryName
public void setConnectionFactoryName(String s)
getConnectionFactoryName
public String getConnectionFactoryName()
setConnectionFactory
public void setConnectionFactory(Object o)
getConnectionFactory
public Object getConnectionFactory()
setConnectionFactory2Name
public void setConnectionFactory2Name(String s)
getConnectionFactory2Name
public String getConnectionFactory2Name()
setConnectionFactory2
public void setConnectionFactory2(Object o)
getConnectionFactory2
public Object getConnectionFactory2()
resolveJNDI
public static Object resolveJNDI(String name)
getDriver
public abstract DatastoreDriver getDriver()
- Returns a new DatastoreDriver that interacts with the datastore
described by this ConnectionInfo object. This method must
be implemented by subclasses.
describeTable
public Table describeTable(String tableName)
close
public void close()
- Release resources. Default implementation of this does nothing.
$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/datastore/ConnectionInfo.html,v 1.6 2004/05/30 08:55:05 wbiggs Exp $