|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.jdbc.DataSourceImpl
public class DataSourceImpl
Non-pooled data source.
| Constructor Summary | |
|---|---|
DataSourceImpl()
Creates a new data source |
|
DataSourceImpl(Path path)
Creates a new data source |
|
| Method Summary | ||
|---|---|---|
void |
close()
|
|
protected void |
finalize()
|
|
java.sql.Connection |
getConnection()
Driver interface to create a new connection. |
|
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password)
Driver interface to create a new connection. |
|
int |
getLoginTimeout()
|
|
java.io.PrintWriter |
getLogWriter()
|
|
void |
init()
Initialize the data source. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
|
void |
setCreateDatabase(boolean create)
If true, creates the database on init. |
|
void |
setFlushDirtyBlocksOnCommit(boolean isFlush)
|
|
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. |
|
java.lang.String |
toString()
|
|
|
unwrap(java.lang.Class<T> iface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceImpl()
public DataSourceImpl(Path path)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public void setPath(Path path)
public void setCreateDatabase(boolean create)
public void setRemoveOnError(boolean remove)
public void setFlushDirtyBlocksOnCommit(boolean isFlush)
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 java.sql.Connection getConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic void close()
public 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
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||