wt.pds
Class StandardDataSource

java.lang.Object
  extended bywt.pds.StandardDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
OracleDataSource, SQLServerDataSource

public abstract class StandardDataSource
extends Object
implements DataSource



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String DB_PASSWORD
           
private static String DB_USER
           
private static String DEFAULT_DELIMITERS
           
private static boolean driverInfoLogged
           
private static String RESOURCE
           
 
Constructor Summary
StandardDataSource()
           
 
Method Summary
protected  void connectionLogCommonSetting(Connection conn)
           
 Connection getConnection()
          

Supported API: false
 Connection getConnection(Properties info)
          

Supported API: false
 Connection getConnection(String username, String password)
          

Supported API: false
 Properties getConnectionPropertiesInfo()
          

Supported API: false
 int getLoginTimeout()
          

Supported API: false
 PrintWriter getLogWriter()
          

Supported API: false
abstract  String getURL()
          

Supported API: false
 void setLoginTimeout(int arg0)
          

Supported API: false
 void setLogWriter(PrintWriter arg0)
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DB_USER

private static final String DB_USER
See Also:
Constant Field Values

DB_PASSWORD

private static final String DB_PASSWORD
See Also:
Constant Field Values

DEFAULT_DELIMITERS

private static final String DEFAULT_DELIMITERS
See Also:
Constant Field Values

driverInfoLogged

private static boolean driverInfoLogged
Constructor Detail

StandardDataSource

public StandardDataSource()
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException


Supported API: false

Specified by:
getConnection in interface DataSource
Returns:
Connection
Throws:
SQLException

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException


Supported API: false

Specified by:
getConnection in interface DataSource
Parameters:
username -
password -
Returns:
Connection
Throws:
SQLException

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException


Supported API: false

Specified by:
getLogWriter in interface DataSource
Returns:
PrintWriter
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException


Supported API: false

Specified by:
getLoginTimeout in interface DataSource
Returns:
int
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter arg0)
                  throws SQLException


Supported API: false

Specified by:
setLogWriter in interface DataSource
Parameters:
arg0 -
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int arg0)
                     throws SQLException


Supported API: false

Specified by:
setLoginTimeout in interface DataSource
Parameters:
arg0 -
Throws:
SQLException

getURL

public abstract String getURL()


Supported API: false

Returns:
String

getConnectionPropertiesInfo

public Properties getConnectionPropertiesInfo()


Supported API: false

Returns:
Properties

getConnection

public Connection getConnection(Properties info)
                         throws SQLException


Supported API: false

Parameters:
info -
Returns:
Connection
Throws:
SQLException

connectionLogCommonSetting

protected void connectionLogCommonSetting(Connection conn)
                                   throws SQLException
Throws:
SQLException