public class PoolManDataSource
extends java.lang.Object
implements javax.sql.DataSource, javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable, javax.naming.spi.ObjectFactory
Title: PoolManDataSource.java
Description:
bboss workgroup
Copyright (c) 2007
| 构造器和说明 |
|---|
PoolManDataSource() |
PoolManDataSource(javax.sql.DataSource datasource,
java.lang.String poolName,
java.lang.String jndiName) |
PoolManDataSource(java.lang.String poolName,
java.lang.String jndiName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password) |
javax.sql.DataSource |
getInnerDataSource() |
java.lang.String |
getJNDIName() |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.lang.Object |
getObjectInstance(java.lang.Object RefObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment) |
java.util.logging.Logger |
getParentLogger() |
javax.sql.PooledConnection |
getPooledConnection() |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password) |
java.lang.String |
getPoolName() |
java.io.Serializable |
getPrimaryKey(java.lang.String tableName) |
java.io.Serializable |
getPrimaryKey(java.lang.String tableName,
java.sql.Connection con) |
javax.naming.Reference |
getReference() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
public PoolManDataSource()
public PoolManDataSource(java.lang.String poolName,
java.lang.String jndiName)
public PoolManDataSource(javax.sql.DataSource datasource,
java.lang.String poolName,
java.lang.String jndiName)
public java.lang.String getPoolName()
public javax.sql.DataSource getInnerDataSource()
public java.lang.String getJNDIName()
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection 在接口中 javax.sql.DataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getConnection 在接口中 javax.sql.DataSourcejava.sql.SQLExceptionpublic javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection 在接口中 javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection 在接口中 javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic javax.naming.Reference getReference()
getReference 在接口中 javax.naming.Referenceablepublic java.io.Serializable getPrimaryKey(java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Serializable getPrimaryKey(java.lang.String tableName,
java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap 在接口中 java.sql.Wrapperjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor 在接口中 java.sql.Wrapperjava.sql.SQLExceptionpublic java.lang.Object getObjectInstance(java.lang.Object RefObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
throws java.lang.Exception
getObjectInstance 在接口中 javax.naming.spi.ObjectFactoryjava.lang.Exceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger 在接口中 javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException