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

java.lang.Objectorg.synchronoss.cpo.jdbc.JndiDataSourceInfo
public class JndiDataSourceInfo
Collects the info required to instantiate a DataSource stored as a JNDI Resource. Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource
| Constructor Summary | |
|---|---|
JndiDataSourceInfo(java.lang.String jndiName)
Creates a JndiDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JndiDataSourceInfo(java.lang.String jndiName,
javax.naming.Context ctx)
Creates a JndiDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JndiDataSourceInfo(java.lang.String jndiName,
javax.naming.Context ctx,
java.lang.String tablePrefix)
Creates a JndiDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JndiDataSourceInfo(java.lang.String jndiName,
java.lang.String tablePrefix)
Creates a JndiDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
| Method Summary | |
|---|---|
javax.sql.DataSource |
getDataSource()
|
java.lang.String |
getDataSourceName()
|
java.lang.String |
getTablePrefix()
Returns the tablePrefix or an empty string if no table prefix exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiDataSourceInfo(java.lang.String jndiName)
jndiName - The JndiName of the app server datasource
public JndiDataSourceInfo(java.lang.String jndiName,
java.lang.String tablePrefix)
jndiName - The JndiName of the app server datasource
public JndiDataSourceInfo(java.lang.String jndiName,
javax.naming.Context ctx)
jndiName - The JndiName of the app server datasourcectx - - The context for which the Jndi Lookup should use.
public JndiDataSourceInfo(java.lang.String jndiName,
javax.naming.Context ctx,
java.lang.String tablePrefix)
jndiName - The JndiName of the app server datasourcectx - - The context for which the Jndi Lookup should use.| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||