|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.synchronoss.cpo.jdbc.JdbcDataSourceInfo
public class JdbcDataSourceInfo
Field Summary | |
---|---|
protected static int |
JNDI_CONNECTION
|
protected static int |
URL_CONNECTION
|
protected static int |
URL_PROPS_CONNECTION
|
protected static int |
URL_USER_PASSWORD_CONNECTION
|
Constructor Summary | |
---|---|
JdbcDataSourceInfo(java.lang.String JndiName)
Creates a JdbcDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JdbcDataSourceInfo(java.lang.String JndiName,
javax.naming.Context ctx)
Creates a JdbcDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JdbcDataSourceInfo(java.lang.String JndiName,
javax.naming.Context ctx,
java.lang.String tablePrefix)
Creates a JdbcDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JdbcDataSourceInfo(java.lang.String JndiName,
java.lang.String tablePrefix)
Creates a JdbcDataSourceInfo from a JNDIName that represents the datasource in the application server. |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
int initialConnections,
int maxConnections,
boolean waitIfBusy)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
int initialConnections,
int maxConnections,
boolean waitIfBusy,
java.lang.String tablePrefix)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties,
int initialConnections,
int maxConnections,
boolean waitIfBusy)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.util.Properties properties,
int initialConnections,
int maxConnections,
boolean waitIfBusy,
java.lang.String tablePrefix)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
int initialConnections,
int maxConnections,
boolean waitIfBusy)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
|
JdbcDataSourceInfo(java.lang.String driver,
java.lang.String url,
java.lang.String username,
java.lang.String password,
int initialConnections,
int maxConnections,
boolean waitIfBusy,
java.lang.String tablePrefix)
Creates a JdbcDataSourceInfo from a Jdbc Driver |
Method Summary | |
---|---|
int |
getConnectionType()
Returns the type of connection to the database. |
java.lang.String |
getDataSourceName()
|
java.lang.String |
getDbTablePrefix()
|
java.lang.String |
getDriver()
Returns the name of the jdbc driver |
int |
getInitialConnections()
Returns the number of initial connections to the database. |
javax.naming.Context |
getJndiCtx()
|
java.lang.String |
getJndiName()
|
int |
getMaxConnections()
Returns the max connections for the connection pool |
java.lang.String |
getPassword()
Returns the password to connect to the database |
java.util.Properties |
getProperties()
Returns the database connection properties |
java.lang.String |
getUrl()
Returns the url to be used to connect to the database |
java.lang.String |
getUserName()
Returns the username to connect to the database |
boolean |
getWaitIfBusy()
Returns whether to wait for an available connection |
protected void |
setConnectionType(int connectionType)
|
protected void |
setDataSourceName(java.lang.String dataSourceName)
|
protected void |
setDbTablePrefix(java.lang.String dbTablePrefix)
|
protected void |
setDriver(java.lang.String driver)
|
protected void |
setInitialConnections(int initialConnections_)
|
protected void |
setJndiCtx(javax.naming.Context jndiCtx_)
|
protected void |
setJndiName(java.lang.String jndiName_)
|
protected void |
setMaxConnections(int maxConnections)
|
protected void |
setPassword(java.lang.String password)
|
protected void |
setProperties(java.util.Properties properties)
|
protected void |
setUrl(java.lang.String url)
|
protected void |
setUserName(java.lang.String username)
|
protected void |
setWaitIfBusy(boolean waitIfBusy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int URL_CONNECTION
protected static final int URL_PROPS_CONNECTION
protected static final int URL_USER_PASSWORD_CONNECTION
protected static final int JNDI_CONNECTION
Constructor Detail |
---|
public JdbcDataSourceInfo(java.lang.String JndiName)
JndiName
- The JndiName of the app server datasourcepublic JdbcDataSourceInfo(java.lang.String JndiName, java.lang.String tablePrefix)
JndiName
- The JndiName of the app server datasourcepublic JdbcDataSourceInfo(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 JdbcDataSourceInfo(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.public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, int initialConnections, int maxConnections, boolean waitIfBusy) throws java.sql.SQLException
driver
- The text name of the driverurl
- - The url that points to the database.initialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, int initialConnections, int maxConnections, boolean waitIfBusy, java.lang.String tablePrefix) throws java.sql.SQLException
driver
- The text name of the driverurl
- - The url that points to the database.initialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, java.util.Properties properties, int initialConnections, int maxConnections, boolean waitIfBusy) throws java.sql.SQLException
driver
- The text name of the driverurl
- - The url that points to the database.properties
- - The connection properties for connecting to the databaseinitialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, java.util.Properties properties, int initialConnections, int maxConnections, boolean waitIfBusy, java.lang.String tablePrefix) throws java.sql.SQLException
driver
- The text name of the driverurl
- - The url that points to the database.properties
- - The connection properties for connecting to the databaseinitialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, java.lang.String username, java.lang.String password, int initialConnections, int maxConnections, boolean waitIfBusy) throws java.sql.SQLException
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 databaseinitialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
public JdbcDataSourceInfo(java.lang.String driver, java.lang.String url, java.lang.String username, java.lang.String password, int initialConnections, int maxConnections, boolean waitIfBusy, java.lang.String tablePrefix) throws java.sql.SQLException
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 databaseinitialConnections
- - The initial number of connections to be
created in the connection poolmaxConnections
- - The max number of connections of the
connection poolwaitIfBusy
- - If the maxConnections are in use do you wait for a
connection to free up or throw an exception
java.sql.SQLException
Method Detail |
---|
public java.lang.String getDriver()
public java.lang.String getUrl()
public java.lang.String getUserName()
public java.lang.String getPassword()
public java.util.Properties getProperties()
public int getMaxConnections()
public boolean getWaitIfBusy()
public int getConnectionType()
protected void setDriver(java.lang.String driver)
protected void setUrl(java.lang.String url)
protected void setUserName(java.lang.String username)
protected void setPassword(java.lang.String password)
protected void setProperties(java.util.Properties properties)
protected void setMaxConnections(int maxConnections)
protected void setWaitIfBusy(boolean waitIfBusy)
protected void setConnectionType(int connectionType)
public javax.naming.Context getJndiCtx()
protected void setJndiCtx(javax.naming.Context jndiCtx_)
jndiCtx_
- The jndiCtx_ to set.public java.lang.String getJndiName()
protected void setJndiName(java.lang.String jndiName_)
jndiName_
- The jndiName_ to set.public int getInitialConnections()
protected void setInitialConnections(int initialConnections_)
initialConnections_
- The initialConnections_ to set.public java.lang.String getDataSourceName()
protected void setDataSourceName(java.lang.String dataSourceName)
dataSourceName
- The dataSourceName to set.public java.lang.String getDbTablePrefix()
protected void setDbTablePrefix(java.lang.String dbTablePrefix)
dbTablePrefix
- The table prefix to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |