Interface DatasourcePropertySet
-
public interface DatasourcePropertySetGathers all data source properties valid for all types of containers.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_PROPERTIESExtra properties passed to the JDBC driver or datasource implementation.static StringCONNECTION_TYPEThe type of the data source (typicallyjavax.sql.XADataSource,javax.sql.ConnectionPoolDataSourceorjavax.sql.DataSource).static StringDATASOURCEA property to encapsulate all the other datasource properties.static StringDRIVER_CLASSThe class name of the Driver or XADataSource implementation clas.static StringIDUnique id to use in configuration files.static StringJNDI_LOCATIONThe JNDI location that this datasource should be bound do (in the config file).static StringPASSWORDThe password to use when connecting to the database.static StringTRANSACTION_SUPPORTThe transaction support of the data source.static StringURLThe url to connect to the database.static StringUSERNAMEThe username to use when connecting to the database.
-
-
-
Field Detail
-
DATASOURCE
static final String DATASOURCE
A property to encapsulate all the other datasource properties. This is to get around cargo only passing strings around, instead of objects.
Important: Please only use this as a setter, as the datasources can also be set using theaddDataSourcemethod.
-
JNDI_LOCATION
static final String JNDI_LOCATION
The JNDI location that this datasource should be bound do (in the config file). Note that many application servers may prepend a context (typicallyjava:comp/env) to this context.- See Also:
- Constant Field Values
-
CONNECTION_TYPE
static final String CONNECTION_TYPE
The type of the data source (typicallyjavax.sql.XADataSource,javax.sql.ConnectionPoolDataSourceorjavax.sql.DataSource).- See Also:
- Constant Field Values
-
TRANSACTION_SUPPORT
static final String TRANSACTION_SUPPORT
The transaction support of the data source. One ofNO_TRANSACTION,LOCAL_TRANSACTIONorXA_TRANSACTION- See Also:
- Constant Field Values
-
DRIVER_CLASS
static final String DRIVER_CLASS
The class name of the Driver or XADataSource implementation clas. Example:org.hsqldb.jdbcDriver.- See Also:
- Constant Field Values
-
URL
static final String URL
The url to connect to the database. Example:jdbc:hsqldb:database/jiradb. The- See Also:
- Constant Field Values
-
USERNAME
static final String USERNAME
The username to use when connecting to the database.- See Also:
- Constant Field Values
-
PASSWORD
static final String PASSWORD
The password to use when connecting to the database.- See Also:
- Constant Field Values
-
ID
static final String ID
Unique id to use in configuration files.- See Also:
- Constant Field Values
-
CONNECTION_PROPERTIES
static final String CONNECTION_PROPERTIES
Extra properties passed to the JDBC driver or datasource implementation.- See Also:
- Constant Field Values
-
-