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

java.lang.Objectorg.synchronoss.cpo.jdbc.ClassDataSourceInfo
public class ClassDataSourceInfo
Collects the info required to instantiate a DataSource from a JDBC Driver Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource
| Constructor Summary | |
|---|---|
ClassDataSourceInfo(java.lang.String className)
Creates a ClassDataSourceInfo from a Jdbc Driver |
|
ClassDataSourceInfo(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates a ClassDataSourceInfo from a Jdbc Driver |
|
ClassDataSourceInfo(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String tablePrefix)
Creates a ClassDataSourceInfo from a Jdbc Driver |
|
ClassDataSourceInfo(java.lang.String className,
java.lang.String tablePrefix)
Creates a ClassDataSourceInfo from a Jdbc Driver |
|
| Method Summary | ||
|---|---|---|
void |
connectionClosed(javax.sql.ConnectionEvent ce)
|
|
void |
connectionErrorOccurred(javax.sql.ConnectionEvent ce)
|
|
void |
finalize()
|
|
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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassDataSourceInfo(java.lang.String className)
throws CpoException
classname - The classname of a class that implements datasource
CpoException
public ClassDataSourceInfo(java.lang.String className,
java.lang.String tablePrefix)
throws CpoException
classname - The classname of a class that implements datasourcetablePrefix - The prefix added to the cpo tables in the metadata source
CpoException
public ClassDataSourceInfo(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> properties)
throws CpoException
classname - The classname of a class that implements datasourceproperties - - The connection properties for connecting to the database
CpoException
public ClassDataSourceInfo(java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String tablePrefix)
throws CpoException
classname - The classname of a class that implements datasourceproperties - - The connection properties for connecting to the databasetablePrefix - The prefix added to the cpo tables in the metadata source
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.SQLExceptionpublic void connectionClosed(javax.sql.ConnectionEvent ce)
connectionClosed in interface javax.sql.ConnectionEventListenerpublic void connectionErrorOccurred(javax.sql.ConnectionEvent ce)
connectionErrorOccurred in interface javax.sql.ConnectionEventListener
public 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 | |||||||||