Class DataSourceAccessor


  • public class DataSourceAccessor
    extends Object
    This class provides access to supported datastore information.

    This class may also be used as an alternate way to retrieve a SQL Connection class. It also provides access to LDAP information, and provides access to a configured CustomDataSourceDriver.

    See Also:
    LdapInfo
    • Constructor Detail

      • DataSourceAccessor

        public DataSourceAccessor()
        Default constructor
    • Method Detail

      • getLdapInfo

        public LdapInfo getLdapInfo​(String ldapId)
        Retrieves LDAP lookup information for the specified id.
        Parameters:
        ldapId - The id of the LDAP datastore information to retrieve
        Returns:
        The LdapInfo or null if not found.
      • getCustomDataSourceDriver

        public CustomDataSourceDriver getCustomDataSourceDriver​(String sourceId)
        Retrieves the specified CustomDataSourceDriver associated with a specific CustomDataSource. The Custom data source object contains configuration information that was set during the data source creation. This information is passed to the appropriate CustomDataSourceDriver before being returned.
        Parameters:
        sourceId - The id of the Custom data source object to retrieve.
        Returns:
        A fully configured CustomDataSourceDriver or null if not found.