Interface DatasourcePropertySet
-
public interface DatasourcePropertySet
Gathers all data source properties valid for all types of containers.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECTION_PROPERTIES
Extra properties passed to the JDBC driver or datasource implementation.static String
CONNECTION_TYPE
The type of the data source (typicallyjavax.sql.XADataSource
,javax.sql.ConnectionPoolDataSource
orjavax.sql.DataSource
).static String
DATASOURCE
A property to encapsulate all the other datasource properties.static String
DRIVER_CLASS
The class name of the Driver or XADataSource implementation clas.static String
ID
Unique id to use in configuration files.static String
JNDI_LOCATION
The JNDI location that this datasource should be bound do (in the config file).static String
PASSWORD
The password to use when connecting to the database.static String
TRANSACTION_SUPPORT
The transaction support of the data source.static String
URL
The url to connect to the database.static String
USERNAME
The 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 theaddDataSource
method.
-
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.ConnectionPoolDataSource
orjavax.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_TRANSACTION
orXA_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
-
-