Class OracleRDBMSClient

    • Constructor Detail

      • OracleRDBMSClient

        public OracleRDBMSClient()
      • OracleRDBMSClient

        public OracleRDBMSClient​(Properties props)
        The following properties are currently supported:

        oracle.soda.sharedMetadataCache - if set to true, the shared cache of collection metadata will be turned on. oracle.soda.localMetadataCache - if set to true, the local cache of collection metadata will be turned on.

        Parameters:
        props - Properties object, populated with 0 or more of the supported properties and their values.
    • Method Detail

      • getDatabase

        public OracleDatabase getDatabase​(Connection connection)
                                   throws OracleException
        Gets the document collections database.

        The same JDBC connection should not be used to back more than one OracleDatabase

        Specified by:
        getDatabase in interface OracleClient
        Parameters:
        connection - JDBC connection.The passed in JDBC connection must be an instance of oracle.jdbc.OracleConnection
        Returns:
        document collections database
        Throws:
        OracleException - if there's an error getting the database
      • getDatabase

        public OracleDatabase getDatabase​(Connection connection,
                                          boolean avoidTxnManagement)
                                   throws OracleException
        Gets the document collections database. This method serves the same purpose as getDatabase(Connection), except it also provides the avoidTxnManagement flag. If this flag is set to true SODA will report an error for any operation that requires transaction management. This is useful when running distributed transactions, to ensure that SODA's local transaction management does not interfere with global transaction decisions. Note: unless you're performing distributed transactions, you should not use this method. Instead, use getDatabase(Connection).

        The same JDBC connection should not be used to back more than one OracleDatabase

        Specified by:
        getDatabase in interface OracleClient
        Parameters:
        connection - JDBC connection.The passed in JDBC connection must be an instance of oracle.jdbc.OracleConnection
        avoidTxnManagement - flag specifying whether to avoid transaction management. If set to true, an error will be thrown if a SODA operation requires transaction management. If set to false, it has no effect.
        Returns:
        document collections database
        Throws:
        OracleException - if there's an error getting the database