psdi.server

Class OracleProxyDBManager

  • All Implemented Interfaces:
    FixedLoggerNames, FixedLoggers


    public class OracleProxyDBManager
    extends DBManager
    This is a java.util.Vector of java.sql.Connections. In addition, it has a name, and a set of values required to establish the connection.
    See Also:
    DBManager, MXServer
    • Field Detail

      • free

        protected java.util.Vector free
      • ORADBPROXYMODE

        public static final java.lang.String ORADBPROXYMODE
        The attribute name that can be set to MXSession to indicate the database proxy mode for the connecting user if different than the proxy mode set for the system.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OracleProxyDBManager

        public OracleProxyDBManager()
    • Method Detail

      • configure

        public void configure(java.util.Properties properties)
        Description copied from class: DBManager
        configure the DBManager based on the information in the properties file read in.
        Overrides:
        configure in class DBManager
      • init

        public boolean init()
        Loads a driver, and establishes a series of connections with the specified database.
        Overrides:
        init in class DBManager
        Returns:
        true if connections succeed, false otherwise.
      • destroy

        public void destroy()
        Closes database connections, set's both the used and free vectors to null
        Overrides:
        destroy in class DBManager
      • getConnectionDetail

        public java.sql.Connection getConnectionDetail(ConnectionKey conKey)
        Get's a connection. Connections come from one of two places,
        • from the list of connections already issued; this happens when the key is one already registred by a previous call to this method with the same key.
        • from the free list; when the key has not been used a previous call to this method.
      • freeConnectionDetail

        public void freeConnectionDetail(ConnectionKey conKey)
      • getSystemConnection

        public java.sql.Connection getSystemConnection()
        Returns the system connection. This should not be used by any application services or business objects.
      • getSequenceConnection

        public java.sql.Connection getSequenceConnection()
        Returns the connection used for generating sequence for sqlserver This should not be used by any application services or business objects.
        Overrides:
        getSequenceConnection in class DBManager
      • getNewConnectionPool

        public oracle.jdbc.pool.OracleOCIConnectionPool getNewConnectionPool(java.lang.String url,
                                                                             java.lang.String userName,
                                                                             java.lang.String password)
      • getProxyConnection

        public ConRef getProxyConnection(oracle.jdbc.pool.OracleOCIConnectionPool pool,
                                         java.lang.Object certi)