public class DataSource extends Object
| Constructor and Description |
|---|
DataSource()
initializes connectionProperties to a new object.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getConnectionProperties()
Extra properties passed to the JDBC Driver.
|
String |
getConnectionType()
The type of the data source (typically
javax.sql.XADataSource or
javax.sql.DataSource). |
String |
getDriverClass()
The class name of the Driver or XADataSource.
|
String |
getId()
The String used to identify this datasource in configuration files.
|
String |
getJndiLocation()
The JNDI location that this datasource should be bound do (in the config file).
|
String |
getPassword()
The password to use when connecting to the database.
|
TransactionSupport |
getTransactionSupport()
The transaction support of the underlying connections, if
javax.xml.DataSource. |
String |
getUrl()
The url to connect to the database.
|
String |
getUsername()
The username to use when connecting to the database.
|
void |
setConnectionProperties(Properties connectionProperties) |
void |
setConnectionType(String connectionType) |
void |
setDriverClass(String driverClass) |
void |
setId(String id) |
void |
setJndiLocation(String jndiLocation) |
void |
setPassword(String password) |
void |
setTransactionSupport(TransactionSupport transactionSupport) |
void |
setUrl(String url) |
void |
setUsername(String username) |
public void setJndiLocation(String jndiLocation)
jndiLocation - where to bind this DataSource (typically java:comp/env).public void setConnectionType(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(String driverClass)
driverClass - The class name of the Driver or XADataSource. Example:
org.hsqldb.jdbcDriver.public void setUrl(String url)
url - The url of the driver.public void setUsername(String username)
username - the user to connect to the database withpublic void setId(String id)
id - id used in configuration files.public void setConnectionProperties(Properties connectionProperties)
connectionProperties - extra properties passed to the jdbc driver.public String getId()
public String getJndiLocation()
java:comp/env) to this
context.public String getConnectionType()
javax.sql.XADataSource or
javax.sql.DataSource).public TransactionSupport getTransactionSupport()
javax.xml.DataSource.public String getDriverClass()
org.hsqldb.jdbcDriver.public Properties getConnectionProperties()
public String getUrl()
jdbc:hsqldb:database/jiradb.public String getUsername()
public String getPassword()
Copyright © 2004-2013 Codehaus. All Rights Reserved.