com.ibm.websphere.advanced.cm.factory
Class Attributes

java.lang.Object
  |
  +--com.ibm.websphere.advanced.cm.factory.Attributes

Deprecated. As of WebSphere 4.0, should use a Properties object instead of an Attributes object to create a DataSource; see DataSourceFactory.getDataSource(java.util.Properties)

public class Attributes
extends java.lang.Object

Attributes encapsulates all of the information required to create a WebSphere DataSource though the DataSourceFactory API. Attributes provides defaults for some values but all remaining values must be filled-in prior to using the Attributes object to create a DataSource.


Field Summary
 long connTimeout
          Deprecated. Timeout, in milliseconds, for connection waits; the default value is 180000 (3 minutes).
 java.lang.String databaseName
          Deprecated. For JTA DataSources, the name of the target database; there is no default value; must not be null for JTA DataSources.
static long defaultConnTimeout
          Deprecated.  
static long defaultIdleTimeout
          Deprecated.  
static long defaultOrphanTimeout
          Deprecated.  
 java.lang.String description
          Deprecated. Description for the DataSource; there is no default value; may be null.
 java.lang.String driver
          Deprecated. Fully-qualified class name of the JDBC driver to be used to access the database; there is no default value; may not be null.
 long idleTimeout
          Deprecated. Timeout, in milliseconds, for idle connection release; the default value is 1800000 (30 minutes).
 int max
          Deprecated. Maximum number of connections in the connection pool; the default value is 2.
 int min
          Deprecated. Minimum number of connections in the connection pool; the default value is 1.
 java.lang.String name
          Deprecated. Unique name for the DataSource; there is no default value; may not be null.
 java.lang.String oemId
          Deprecated. Oem password.
 long orphanTimeout
          Deprecated. Timeout, in milliseconds, for orphan connection collection; the default value is 1800000 (30 minutes).
 int statementCacheSize
          Deprecated. Maximum number of prepared statements to cache for the DataSource; this limit is shared among all connections; default value is 100
 java.lang.String url
          Deprecated. JDBC 1.x-style database URL identifying the target database; there is no default value; must not be null for JDBC DataSurces.
 
Constructor Summary
Attributes()
          Deprecated.  
 
Method Summary
 java.lang.String toString()
          Deprecated. Print a nice pretty view of the parameters in this Attributes instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Deprecated. 
Unique name for the DataSource; there is no default value; may not be null.

driver

public java.lang.String driver
Deprecated. 
Fully-qualified class name of the JDBC driver to be used to access the database; there is no default value; may not be null.

url

public java.lang.String url
Deprecated. 
JDBC 1.x-style database URL identifying the target database; there is no default value; must not be null for JDBC DataSurces.

databaseName

public java.lang.String databaseName
Deprecated. 
For JTA DataSources, the name of the target database; there is no default value; must not be null for JTA DataSources. NOTE: databaseName has been disfuncted. use url instead. url is same as that when you define a JDBC DataSource.

description

public java.lang.String description
Deprecated. 
Description for the DataSource; there is no default value; may be null.

min

public int min
Deprecated. 
Minimum number of connections in the connection pool; the default value is 1.

max

public int max
Deprecated. 
Maximum number of connections in the connection pool; the default value is 2.

connTimeout

public long connTimeout
Deprecated. 
Timeout, in milliseconds, for connection waits; the default value is 180000 (3 minutes).

defaultConnTimeout

public static long defaultConnTimeout
Deprecated. 

idleTimeout

public long idleTimeout
Deprecated. 
Timeout, in milliseconds, for idle connection release; the default value is 1800000 (30 minutes).

defaultIdleTimeout

public static long defaultIdleTimeout
Deprecated. 

orphanTimeout

public long orphanTimeout
Deprecated. 
Timeout, in milliseconds, for orphan connection collection; the default value is 1800000 (30 minutes).

defaultOrphanTimeout

public static long defaultOrphanTimeout
Deprecated. 

statementCacheSize

public int statementCacheSize
Deprecated. 
Maximum number of prepared statements to cache for the DataSource; this limit is shared among all connections; default value is 100

oemId

public java.lang.String oemId
Deprecated. 
Oem password. required for Merant driver.
Constructor Detail

Attributes

public Attributes()
Deprecated. 
Method Detail

toString

public java.lang.String toString()
Deprecated. 
Print a nice pretty view of the parameters in this Attributes instance
Overrides:
toString in class java.lang.Object