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 (typically javax.sql.XADataSource, javax.sql.ConnectionPoolDataSource or javax.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 the addDataSource method.
        See Also:
        LocalConfiguration.getDataSources(), Constant Field Values
      • 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 (typically java:comp/env) to this context.
        See Also:
        Constant Field Values
      • CONNECTION_TYPE

        static final String CONNECTION_TYPE
        The type of the data source (typically javax.sql.XADataSource, javax.sql.ConnectionPoolDataSource or javax.sql.DataSource).
        See Also:
        Constant Field Values
      • TRANSACTION_SUPPORT

        static final String TRANSACTION_SUPPORT
        The transaction support of the data source. One of NO_TRANSACTION, LOCAL_TRANSACTION or XA_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
      • CONNECTION_PROPERTIES

        static final String CONNECTION_PROPERTIES
        Extra properties passed to the JDBC driver or datasource implementation.
        See Also:
        Constant Field Values