FileDocCategorySizeDatePackage
DataSourceSpec.javaAPI DocGlassfish v2 API5068Fri May 04 22:36:04 BST 2007com.sun.gjc.common

DataSourceSpec

public class DataSourceSpec extends Object implements Serializable
Encapsulate the DataSource object details obtained from ManagedConnectionFactory.
version
1.0, 02/07/23
author
Binod P.G

Fields Summary
public static final int
USERNAME
public static final int
PASSWORD
public static final int
URL
public static final int
LOGINTIMEOUT
public static final int
LOGWRITER
public static final int
DATABASENAME
public static final int
DATASOURCENAME
public static final int
DESCRIPTION
public static final int
NETWORKPROTOCOL
public static final int
PORTNUMBER
public static final int
ROLENAME
public static final int
SERVERNAME
public static final int
MAXSTATEMENTS
public static final int
INITIALPOOLSIZE
public static final int
MINPOOLSIZE
public static final int
MAXPOOLSIZE
public static final int
MAXIDLETIME
public static final int
PROPERTYCYCLE
public static final int
DRIVERPROPERTIES
public static final int
CLASSNAME
public static final int
DELIMITER
public static final int
XADATASOURCE
public static final int
DATASOURCE
public static final int
CONNECTIONPOOLDATASOURCE
public static final int
CONNECTIONVALIDATIONREQUIRED
public static final int
VALIDATIONMETHOD
public static final int
VALIDATIONTABLENAME
public static final int
TRANSACTIONISOLATION
public static final int
GUARANTEEISOLATIONLEVEL
public static final int
STATEMENTTIMEOUT
public static final int
STATEMENTWRAPPING
public static final int
JDBC30DATASOURCE
private ConcurrentHashMap
details
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)
Checks whether two DataSourceSpec objects are equal or not.

param
obj Instance of DataSourceSpec object.

        if (obj instanceof DataSourceSpec) {
            return this.details.equals(((DataSourceSpec) obj).details);
        }
        return false;
    
public java.lang.StringgetDetail(int property)
Get the value of property

param
property whose value is required
return
value of the property.

        if (details.containsKey(property)) {
            return details.get(property);
        } else {
            return null;
        }
    
public inthashCode()
Retrieves the hashCode of this DataSourceSpec object.

return
hashCode of this object.

        return this.details.hashCode();
    
public voidsetDetail(int property, java.lang.String value)
Set the property.

param
property Property Name to be set.
param
value Value of property to be set.


                                           
          
        details.put(property, value);