|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shiftone.ooc.factory.SimpleDataSource
| Field Summary | |
static java.lang.String |
PARAM_DRIVER
|
static java.lang.String |
PARAM_URL
|
| Constructor Summary | |
SimpleDataSource(java.lang.String driverClassName,
java.lang.String url,
java.util.Properties baseProps)
Constructor SimpleDataSource |
|
| Method Summary | |
java.sql.Connection |
getConnection()
Method getConnection |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Method getConnection |
int |
getLoginTimeout()
Method getLoginTimeout |
java.io.PrintWriter |
getLogWriter()
Method getLogWriter |
static javax.sql.DataSource |
newInstance(javax.naming.Reference ref)
This is a helper method that can create a datasource from a JNDI reference. |
void |
setLoginTimeout(int seconds)
Method setLoginTimeout |
void |
setLogWriter(java.io.PrintWriter out)
Method setLogWriter |
java.lang.String |
toString()
Method toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String PARAM_DRIVER
public static final java.lang.String PARAM_URL
| Constructor Detail |
public SimpleDataSource(java.lang.String driverClassName,
java.lang.String url,
java.util.Properties baseProps)
driverClassName - url - baseProps - | Method Detail |
public static javax.sql.DataSource newInstance(javax.naming.Reference ref)
ref -
public java.lang.String toString()
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.DataSourcejava.sql.SQLException
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.DataSourcejava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||