Enhydra 3.1 API

com.lutris.appserver.server.sql.sybase
Class SybaseLogicalDatabase

java.lang.Object
  |
  +--com.lutris.appserver.server.sql.standard.StandardLogicalDatabase
        |
        +--com.lutris.appserver.server.sql.sybase.SybaseLogicalDatabase

public class SybaseLogicalDatabase
extends StandardLogicalDatabase

Represents a logical database with Sybase 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
SybaseLogicalDatabase()
          Default constructor to configure a single logical database.
SybaseLogicalDatabase(java.lang.String dbName, Config dbConfig)
          Creates and configures a single logical database with sybase specific enhancements.
 
Method Summary
 DBQuery createQuery()
          Return a query for use on this logical database.
 DBTransaction createTransaction()
          Return a transaction for use on this Sybase 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

SybaseLogicalDatabase

public SybaseLogicalDatabase(java.lang.String dbName,
                             Config dbConfig)
                      throws ConfigException,
                             java.sql.SQLException
Creates and configures a single logical database with sybase 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()

SybaseLogicalDatabase

public SybaseLogicalDatabase()
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 Sybase 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