Class DataSourceElement


  • public class DataSourceElement
    extends Object
    Holds configuration data for the <datasource> tag used to configure the ANT plugin.
    • Constructor Detail

      • DataSourceElement

        public DataSourceElement()
    • Method Detail

      • getConnectionProperties

        public Properties getConnectionProperties()
        Returns:
        Extra properties passed to the DataSource.
      • setConnectionProperties

        public void setConnectionProperties​(Properties connectionProperties)
        Parameters:
        connectionProperties - Extra properties passed to the DataSource.
      • getConnectionType

        public String getConnectionType()
        Returns:
        Type of this DataSource, for example javax.sql.XADataSource or javax.sql.Driver.
      • setConnectionType

        public void setConnectionType​(String connectionType)
        Parameters:
        connectionType - Type of this DataSource, for example javax.sql.XADataSource or javax.sql.Driver.
      • getDriverClass

        public String getDriverClass()
        Returns:
        The class name of the Driver.
      • setDriverClass

        public void setDriverClass​(String driverClass)
        Parameters:
        driverClass - The class name of the Driver.
      • getId

        public String getId()
        Returns:
        Id used in configuration files.
      • setId

        public void setId​(String id)
        Parameters:
        id - Id used in configuration files.
      • getJndiName

        public String getJndiName()
        Returns:
        JNDI name where to find this DataSource.
      • setJndiName

        public void setJndiName​(String jndiName)
        Parameters:
        jndiName - JNDI name where to find this DataSource.
      • getPassword

        public String getPassword()
        Returns:
        DataSource password.
      • setPassword

        public void setPassword​(String password)
        Parameters:
        password - DataSource password.
      • getTransactionSupport

        public String getTransactionSupport()
        Returns:
        Transaction support of the datasource ex. XA_TRANSACTION
      • setTransactionSupport

        public void setTransactionSupport​(String transactionSupport)
        Parameters:
        transactionSupport - Transaction support of the datasource ex. XA_TRANSACTION
      • getUrl

        public String getUrl()
        Returns:
        DataSource connection URL.
      • setUrl

        public void setUrl​(String url)
        Parameters:
        url - DataSource connection URL.
      • getUsername

        public String getUsername()
        Returns:
        DataSource username.
      • setUsername

        public void setUsername​(String username)
        Parameters:
        username - DataSource username.
      • createDataSource

        public DataSource createDataSource()
        Create the datasource object.
        Returns:
        Cargo datasource object.