Enhydra 3.1 API

com.lutris.appserver.server.sql.oracle
Class OracleLogicalDatabase

java.lang.Object
  |
  +--com.lutris.appserver.server.sql.standard.StandardLogicalDatabase
        |
        +--com.lutris.appserver.server.sql.oracle.OracleLogicalDatabase

public class OracleLogicalDatabase
extends StandardLogicalDatabase

Represents a logical database with Oracle specific capabilities.

Since:
LBS1.8
Version:
$Revision: 1.6.12.1 $
See Also:
StandardLogicalDatabase

Fields inherited from class com.lutris.appserver.server.sql.standard.StandardLogicalDatabase
connectionAllocator, dbName, driver, objectIdAllocator
 
Constructor Summary
OracleLogicalDatabase()
          Default constructor to configure a single logical database.
OracleLogicalDatabase(java.lang.String dbName, Config dbConfig)
          Creates and configures a single logical database with oracle specific enhancements.
 
Method Summary
 DBQuery createQuery()
          Return a query for use on this logical database.
 DBTransaction createTransaction()
          Return a transaction for use on this oracle logical database.
 java.lang.String getType()
          Return a description of the logical database type.
 ConnectionAllocator loadConnectionAllocator(Config connectionConfig)
          Return the connection allocator.
 ObjectIdAllocator loadObjectIdAllocator(Config objIdConfig)
          Return the object id allocator.
 
Methods inherited from class com.lutris.appserver.server.sql.standard.StandardLogicalDatabase
allocateConnection, allocateObjectId, getActiveConnectionCount, getMaxConnectionCount, getMaxConnectionCountDate, getName, getRequestCount, init, resetMaxConnectionCount, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleLogicalDatabase

public OracleLogicalDatabase(java.lang.String dbName,
                             Config dbConfig)
                      throws ConfigException,
                             java.sql.SQLException
Creates and configures a single logical database with oracle specific enhancements.
Parameters:
dbName - The logical name of the database.
dbConfig - The configuration object for this logical database.
Throws:
ConfigException - If there is an error in the configuration file.
java.sql.SQLException - If a SQL error occurs.
See Also:
StandardLogicalDatabase.StandardLogicalDatabase()

OracleLogicalDatabase

public OracleLogicalDatabase()
Default constructor to configure a single logical database. Note that the init() method must be called to configure the database.
See Also:
StandardLogicalDatabase.StandardLogicalDatabase()
Method Detail

loadConnectionAllocator

public ConnectionAllocator loadConnectionAllocator(Config connectionConfig)
                                            throws ConfigException
Return the connection allocator.
Overrides:
loadConnectionAllocator in class StandardLogicalDatabase
Parameters:
connectionConfig - The configuration object for the connection allocator.
Returns:
The connection allocator.
Throws:
ConfigException - If there is an error in the configuration file.

loadObjectIdAllocator

public ObjectIdAllocator loadObjectIdAllocator(Config objIdConfig)
                                        throws ConfigException
Return the object id allocator.
Overrides:
loadObjectIdAllocator in class StandardLogicalDatabase
Parameters:
objIdConfig - The configuration object for the object id allocator.
Returns:
The object id allocator.
Throws:
ConfigException - If there is an error in the configuration file.

createTransaction

public DBTransaction createTransaction()
                                throws java.sql.SQLException
Return a transaction for use on this oracle logical database.
Overrides:
createTransaction in class StandardLogicalDatabase
Returns:
The transaction object.
Throws:
java.sql.SQLException - if a SQL error occurs.

createQuery

public DBQuery createQuery()
                    throws java.sql.SQLException
Return a query for use on this logical database.
Overrides:
createQuery in class StandardLogicalDatabase
Returns:
The query object.
Throws:
java.sql.SQLException - if a SQL error occurs.

getType

public java.lang.String getType()
Return a description of the logical database type.
Overrides:
getType in class StandardLogicalDatabase
Returns:
The type.

Enhydra 3.1 API