public class ConnectionPoolDataSourceImpl
extends java.lang.Object
implements javax.sql.ConnectionPoolDataSource
Constructor and Description |
---|
ConnectionPoolDataSourceImpl()
Creates a new data source
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
javax.sql.PooledConnection |
getPooledConnection()
Driver interface to create a new connection.
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Driver interface to create a new connection.
|
java.lang.String |
getURL() |
void |
init()
Initialize the data source.
|
void |
setCreateDatabase(boolean create)
If true, creates the database on init.
|
void |
setLoginTimeout(int foo) |
void |
setLogWriter(java.io.PrintWriter log) |
void |
setPath(Path path)
Sets the path to the database.
|
void |
setRemoveOnError(boolean remove)
If true, removes bad tables on init.
|
void |
setURL(java.lang.String url)
Sets the url to the database.
|
java.lang.String |
toString() |
public ConnectionPoolDataSourceImpl()
public void setPath(Path path)
public void setURL(java.lang.String url)
public java.lang.String getURL()
public void setCreateDatabase(boolean create)
public void setRemoveOnError(boolean remove)
public void init() throws java.sql.SQLException
java.sql.SQLException
public int getLoginTimeout()
getLoginTimeout
in interface javax.sql.CommonDataSource
public void setLoginTimeout(int foo)
setLoginTimeout
in interface javax.sql.CommonDataSource
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.sql.CommonDataSource
public void setLogWriter(java.io.PrintWriter log)
setLogWriter
in interface javax.sql.CommonDataSource
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
public java.util.logging.Logger getParentLogger()
getParentLogger
in interface javax.sql.CommonDataSource
public java.lang.String toString()
toString
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable