|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.jdbc.ConnectionPoolDataSourceImpl
public class ConnectionPoolDataSourceImpl
Driver for the internal database.
| Constructor Summary | |
|---|---|
ConnectionPoolDataSourceImpl()
Creates a new data source |
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPoolDataSourceImpl()
| Method Detail |
|---|
public void setPath(Path path)
public void setURL(java.lang.String url)
public void setCreateDatabase(boolean create)
public void setRemoveOnError(boolean remove)
public void init()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getLoginTimeout()
getLoginTimeout in interface javax.sql.CommonDataSourcepublic void setLoginTimeout(int foo)
setLoginTimeout in interface javax.sql.CommonDataSourcepublic java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.sql.CommonDataSourcepublic 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.ConnectionPoolDataSourcejava.sql.SQLException
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||