|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.container.configuration.entry.DataSource
public class DataSource
A Datasource is a representation of a JDBC datasource. If supported by the container, this property is used to setup a datasource.
| Constructor Summary | |
|---|---|
DataSource()
initializes connectionProperties to a new object. |
|
| Method Summary | |
|---|---|
java.util.Properties |
getConnectionProperties()
Extra properties passed to the JDBC Driver. |
java.lang.String |
getConnectionType()
The type of the data source (typically javax.sql.XADataSource or
javax.sql.DataSource). |
java.lang.String |
getDriverClass()
The class name of the Driver or XADataSource. |
java.lang.String |
getId()
The String used to identify this datasource in configuration files. |
java.lang.String |
getJndiLocation()
The JNDI location that this datasource should be bound do (in the config file). |
java.lang.String |
getPassword()
The password to use when connecting to the database. |
TransactionSupport |
getTransactionSupport()
The transaction support of the underlying connections, if javax.xml.DataSource. |
java.lang.String |
getUrl()
The url to connect to the database. |
java.lang.String |
getUsername()
The username to use when connecting to the database. |
void |
setConnectionProperties(java.util.Properties connectionProperties)
|
void |
setConnectionType(java.lang.String connectionType)
|
void |
setDriverClass(java.lang.String driverClass)
|
void |
setId(java.lang.String id)
|
void |
setJndiLocation(java.lang.String jndiLocation)
|
void |
setPassword(java.lang.String password)
|
void |
setTransactionSupport(TransactionSupport transactionSupport)
|
void |
setUrl(java.lang.String url)
|
void |
setUsername(java.lang.String username)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSource()
| Method Detail |
|---|
public void setJndiLocation(java.lang.String jndiLocation)
jndiLocation - where to bind this DataSource (typically java:comp/env).public void setConnectionType(java.lang.String connectionType)
connectionType - what to use to get a connection from the database.
javax.sql.XADataSource or javax.sql.Driver.public void setTransactionSupport(TransactionSupport transactionSupport)
transactionSupport - transaction support of the datasource ex.
XA_TRANSACTIONpublic void setDriverClass(java.lang.String driverClass)
driverClass - The class name of the Driver or XADataSource. Example:
org.hsqldb.jdbcDriver.public void setUrl(java.lang.String url)
url - The url of the driver.public void setUsername(java.lang.String username)
username - the user to connect to the database withpublic void setPassword(java.lang.String password)
password - the password to usernamepublic void setId(java.lang.String id)
id - id used in configuration files.public void setConnectionProperties(java.util.Properties connectionProperties)
connectionProperties - extra properties passed to the jdbc driver.public java.lang.String getId()
public java.lang.String getJndiLocation()
java:comp/env) to this
context.
public java.lang.String getConnectionType()
javax.sql.XADataSource or
javax.sql.DataSource).
public TransactionSupport getTransactionSupport()
javax.xml.DataSource.
public java.lang.String getDriverClass()
org.hsqldb.jdbcDriver.
public java.util.Properties getConnectionProperties()
public java.lang.String getUrl()
jdbc:hsqldb:database/jiradb.
public java.lang.String getUsername()
public java.lang.String getPassword()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||