psdi.server

Class CustomDriverProxy

  • java.lang.Object
    • psdi.server.CustomDriverProxy
  • All Implemented Interfaces:
    java.sql.Driver, FixedLoggerNames, FixedLoggers


    public class CustomDriverProxy
    extends java.lang.Object
    implements java.sql.Driver, FixedLoggers
    CustomDriverProxy is a means of configuring the database driver without having to make changes to the DBManager class.

    To use CustomDriverProxy, do the following:

    1. Specify CustomDriverProxy in the maximo.properties file as follows:
      mxe.db.driver=psdi.server.CustomDriverProxy
    2. Create a new file named customdriver.properties in the properties folder. Within this file, define the name of the "real" driver and any additional properties you want to configure. For example, you would define the "real" Oracle driver like this:
      realdriverclass=oracle.jdbc.OracleDriver
      Additional property names would be prepended with "properties." in the customdriver.properties file. In the example below, we have configured the property oracle.net.encryption_client:
      property.oracle.net.encryption_client=REQUIRED
    The CustomDriverProxy class is provided as a convenience. The product does not support every conceivable combination of drivers and properties. It is the responsibility of the client to verify that the requested configuration works properly.
    • Constructor Detail

      • CustomDriverProxy

        public CustomDriverProxy()
    • Method Detail

      • acceptsURL

        public boolean acceptsURL(java.lang.String url)
                           throws java.sql.SQLException
        Specified by:
        acceptsURL in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • connect

        public java.sql.Connection connect(java.lang.String url,
                                           java.util.Properties info)
                                    throws java.sql.SQLException
        Specified by:
        connect in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface java.sql.Driver
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface java.sql.Driver
      • getPropertyInfo

        public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                             java.util.Properties info)
                                                      throws java.sql.SQLException
        Specified by:
        getPropertyInfo in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • jdbcCompliant

        public boolean jdbcCompliant()
        Specified by:
        jdbcCompliant in interface java.sql.Driver
      • getParentLogger

        public java.util.logging.Logger getParentLogger()
                                                 throws java.sql.SQLFeatureNotSupportedException
        Specified by:
        getParentLogger in interface java.sql.Driver
        Throws:
        java.sql.SQLFeatureNotSupportedException