|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.container.property.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(java.util.Properties properties)
Contruct a DataSource from a list of properties. |
|
DataSource(java.lang.String datasourceInformation)
Contruct a DataSource from a single String. |
|
DataSource(java.lang.String jndiLocation,
java.lang.String dataSourceType,
java.lang.String driverClass,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Contruct a DataSource object. |
Method Summary | |
java.lang.String |
getDataSourceType()
The type of the data source (typically javax.sql.XADataSource or
javax.sql.DataSource ). |
java.lang.String |
getDriverClass()
The class name of the JDBC driver. |
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. |
java.lang.String |
getStringRepresentation()
Get a string representation of this 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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataSource(java.lang.String jndiLocation, java.lang.String dataSourceType, java.lang.String driverClass, java.lang.String url, java.lang.String username, java.lang.String password)
jndiLocation
- (typically java:comp/env
)dataSourceType
- (typically javax.sql.XADataSource
or
javax.sql.DataSource
)driverClass
- The class name of the JDBC driver.
Example: org.hsqldb.jdbcDriver
url
- The url to connect to the database.
Example: jdbc:hsqldb:database/jiradb
username
- The username to use when connecting to the database.password
- The password to use when connecting to the database.public DataSource(java.lang.String datasourceInformation)
datasourceInformation
- A string, really a list of properties, representing a datasourcePropertyUtils.getDataSourceProperties(String)
public DataSource(java.util.Properties properties)
properties
- A list of properties representing this datasourcePropertyUtils.getDataSourceProperties(String)
Method Detail |
public java.lang.String getStringRepresentation()
PropertyUtils.getDataSourceString(java.util.Properties)
public java.lang.String getJndiLocation()
java:comp/env
) to
this context.
public java.lang.String getDataSourceType()
javax.sql.XADataSource
or
javax.sql.DataSource
).
public java.lang.String getDriverClass()
org.hsqldb.jdbcDriver
.
public java.lang.String getUrl()
jdbc:hsqldb:database/jiradb
.
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |