com.codestudio.sql
Class PoolManDataSource
java.lang.Object
|
+--com.codestudio.sql.PoolManDataSource
- All Implemented Interfaces:
- javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.naming.spi.ObjectFactory, javax.naming.Referenceable
- public class PoolManDataSource
- extends java.lang.Object
- implements javax.sql.DataSource, javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable, javax.naming.spi.ObjectFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PoolManDataSource
public PoolManDataSource()
PoolManDataSource
public PoolManDataSource(java.lang.String poolName,
java.lang.String jndiName)
getPoolName
public java.lang.String getPoolName()
getJNDIName
public java.lang.String getJNDIName()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
getConnection
public java.sql.Connection getConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
getPooledConnection
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
- Specified by:
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interface javax.sql.DataSource
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interface javax.sql.DataSource
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- Specified by:
setLogWriter
in interface javax.sql.DataSource
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter
in interface javax.sql.DataSource
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getReference
public javax.naming.Reference getReference()
- Specified by:
getReference
in interface javax.naming.Referenceable
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object RefObj,
javax.naming.Name Nm,
javax.naming.Context Ctx,
java.util.Hashtable Env)
throws java.lang.Exception
- Specified by:
getObjectInstance
in interface javax.naming.spi.ObjectFactory
Copyright © 1999-2001 The Code Studio. All Rights Reserved.