com.lutris.appserver.server.sql.msql
Class MsqlLogicalDatabase
java.lang.Object
|
+--com.lutris.appserver.server.sql.standard.StandardLogicalDatabase
|
+--com.lutris.appserver.server.sql.msql.MsqlLogicalDatabase
- public class MsqlLogicalDatabase
- extends StandardLogicalDatabase
Represents a logical database with Msql specific capabilities.
- Since:
- LBS1.8
- Version:
- $Revision: 1.6.12.1 $
- See Also:
StandardLogicalDatabase
Constructor Summary |
MsqlLogicalDatabase()
Default constructor to configure a single logical database. |
MsqlLogicalDatabase(java.lang.String dbName,
Config dbConfig)
Creates and configures a single logical database with Msql
specific enhancements. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MsqlLogicalDatabase
public MsqlLogicalDatabase(java.lang.String dbName,
Config dbConfig)
throws ConfigException,
java.sql.SQLException
- Creates and configures a single logical database with Msql
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()
MsqlLogicalDatabase
public MsqlLogicalDatabase()
- Default constructor to configure a single logical database.
Note that the
init()
method must be called to
configure the database.
- See Also:
StandardLogicalDatabase.StandardLogicalDatabase()
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 Msql 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.