|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.synchronoss.cpo.jdbc.DriverDataSourceInfo
public class DriverDataSourceInfo
Collects the info required to instantiate a DataSource from a JDBC Driver Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource
| Constructor Summary | |
|---|---|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties,
java.lang.String tablePrefix)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String tablePrefix)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String tablePrefix)
Creates a DriverDataSourceInfo from a Jdbc Driver |
|
| Method Summary | ||
|---|---|---|
java.sql.Connection |
getConnection()
|
|
java.sql.Connection |
getConnection(java.lang.String userName,
java.lang.String password)
|
|
javax.sql.DataSource |
getDataSource()
|
|
java.lang.String |
getDataSourceName()
|
|
int |
getLoginTimeout()
|
|
java.io.PrintWriter |
getLogWriter()
|
|
java.lang.String |
getTablePrefix()
Returns the tablePrefix or an empty string if no table prefix exists. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
|
void |
setLoginTimeout(int seconds)
|
|
void |
setLogWriter(java.io.PrintWriter out)
|
|
java.lang.String |
toString()
|
|
|
unwrap(java.lang.Class<T> iface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.
CpoException
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String tablePrefix)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.
CpoException
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.properties - - The connection properties for connecting to the database
CpoException
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties,
java.lang.String tablePrefix)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.properties - - The connection properties for connecting to the database
CpoException
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.username - - The username for connecting to the databasepassword - - The password for connectinf to the database
CpoException
public DriverDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String tablePrefix)
throws CpoException
driver - The text name of the driverurl - - The url that points to the database.username - - The username for connecting to the databasepassword - - The password for connectinf to the database
CpoException| Method Detail |
|---|
public java.lang.String getDataSourceName()
getDataSourceName in interface DataSourceInfopublic java.lang.String getTablePrefix()
DataSourceInfo
getTablePrefix in interface DataSourceInfo
public javax.sql.DataSource getDataSource()
throws CpoException
getDataSource in interface DataSourceInfoCpoException
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 java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
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
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||