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.


Field Summary
protected  String connectionDriverName
           
protected  Object connectionFactory
           
protected  Object connectionFactory2
           
protected  String connectionFactory2Name
           
protected  String connectionFactoryName
           
protected  String connectionPassword
           
protected  String connectionURL
           
protected  String connectionUserName
           
protected  InterfaceManagerFactory factory
           
protected  int maxPool
           
protected  int minPool
           
protected  int msWait
           
protected  Properties properties
           
 
Constructor Summary
ConnectionInfo()
           
 
Method Summary
 void close()
          Release resources.
 Table describeTable(String tableName)
           
 String getConnectionDriverName()
           
 Object getConnectionFactory()
           
 Object getConnectionFactory2()
           
 String getConnectionFactory2Name()
           
 String getConnectionFactoryName()
           
 String getConnectionURL()
           
 String getConnectionUserName()
           
abstract  DatastoreDriver getDriver()
          Returns a new DatastoreDriver that interacts with the datastore described by this ConnectionInfo object.
 int getMaxPool()
           
 int getMinPool()
           
 int getMsWait()
           
 Properties getProperties()
           
static Object resolveJNDI(String name)
           
 void setConnectionDriverName(String s)
           
 void setConnectionFactory(Object o)
           
 void setConnectionFactory2(Object o)
           
 void setConnectionFactory2Name(String s)
           
 void setConnectionFactoryName(String s)
           
 void setConnectionPassword(String s)
           
 void setConnectionURL(String s)
           
 void setConnectionUserName(String s)
           
 void setFactory(InterfaceManagerFactory factory)
           
 void setMaxPool(int i)
           
 void setMinPool(int i)
           
 void setMsWait(int i)
           
 void setProperties(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConnectionInfo

public ConnectionInfo()
Method Detail

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 $