Class NonLoadingJdbcAdapter

  • All Implemented Interfaces:
    JdbcSparkAdapter

    public class NonLoadingJdbcAdapter
    extends java.lang.Object
    implements JdbcSparkAdapter
    JDBC Spark Adapter that supports parsing Connection Plugin Properties, but DOES NOT attempt to modify the classpath.
    • Field Detail

      • logger

        protected org.slf4j.Logger logger
    • Constructor Detail

      • NonLoadingJdbcAdapter

        @Inject
        public NonLoadingJdbcAdapter​(java.util.Map<java.lang.String,​java.lang.String> sessionOptions,
                                     CortexSecretsClient cortexSecretsClient)
    • Method Detail

      • contentKeyForDriver

        public java.lang.String contentKeyForDriver​(java.lang.String driver)
        Description copied from interface: JdbcSparkAdapter
        Returns the corresponding Key in Managed Content for the JDBC driver name.
        Specified by:
        contentKeyForDriver in interface JdbcSparkAdapter
        Parameters:
        driver - JDBC driver name
        Returns:
        Key in Managed Content
      • getSharedCDataKey

        public java.util.Map<java.lang.String,​java.lang.String> getSharedCDataKey()
        Description copied from interface: JdbcSparkAdapter
        Returns options for the CData Keys in the Shared Cortex Project.
        Specified by:
        getSharedCDataKey in interface JdbcSparkAdapter
        Returns:
        Options for CData Keys
      • checkDriverInClassPath

        public void checkDriverInClassPath​(java.lang.String driver)
        Description copied from interface: JdbcSparkAdapter
        Checks if the JDBC driver is in the class path.
        Specified by:
        checkDriverInClassPath in interface JdbcSparkAdapter
        Parameters:
        driver - JDBC Driver name
      • includeDriverInClassPath

        public void includeDriverInClassPath​(java.lang.String driver,
                                             java.lang.String managedContentKey)
        Description copied from interface: JdbcSparkAdapter
        Checks if the JDBC Driver is in the class path and if not includes the corresponding Jar file from Managed Content to the current classpath.
        Specified by:
        includeDriverInClassPath in interface JdbcSparkAdapter
        Parameters:
        driver - JDBC Driver name
        managedContentKey - Key in Managed COntnet