org.opensubsystems.core.persist.db.maxdb
Class MaxDBDatabaseImpl

java.lang.Object
  extended by org.opensubsystems.core.persist.db.DatabaseImpl
      extended by org.opensubsystems.core.persist.db.sapdb.SapDBDatabaseImpl
          extended by org.opensubsystems.core.persist.db.maxdb.MaxDBDatabaseImpl
All Implemented Interfaces:
Database

public class MaxDBDatabaseImpl
extends SapDBDatabaseImpl

Management layer for MaxDB database (http://www.mysql.com/products/maxdb/). Since MaxDB is rebranded SAP DB database, at this time it can reuse majority of the SAP DB functionality.

Version:
$Id: MaxDBDatabaseImpl.java,v 1.3 2007/01/07 06:14:38 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision.

Field Summary
 
Fields inherited from class org.opensubsystems.core.persist.db.DatabaseImpl
m_bDatabaseSchemaInitialized, m_bDatabaseStarted, m_bDatabaseStartInProgress, m_vdsSchema, MAX_SAFE_LENGTH
 
Fields inherited from interface org.opensubsystems.core.persist.db.Database
BATCH_ITERATOR, DB2_DATABASE_TYPE, DB2_DATABASE_TYPE_IDENTIFIER, HSQLDB_DATABASE_TYPE, HSQLDB_DATABASE_TYPE_IDENTIFIER, MAXDB_DATABASE_TYPE, MAXDB_DATABASE_TYPE_IDENTIFIER, MSSQL_DATABASE_TYPE, MSSQL_DATABASE_TYPE_IDENTIFIER, MYSQL_DATABASE_TYPE, MYSQL_DATABASE_TYPE_IDENTIFIER, ORACLE_DATABASE_TYPE, ORACLE_DATABASE_TYPE_IDENTIFIER, POSTGRESQL_DATABASE_TYPE, POSTGRESQL_DATABASE_TYPE_IDENTIFIER, SAPDB_DATABASE_TYPE, SAPDB_DATABASE_TYPE_IDENTIFIER, SYBASE_DATABASE_TYPE, SYBASE_DATABASE_TYPE_IDENTIFIER
 
Constructor Summary
MaxDBDatabaseImpl()
          Default constructor for empty database.
 
Method Summary
 int getDatabaseType()
          Returns the type of database currently in use. It will be one of the constants defined in this class (SAPDB, HSQLDB, etc.).
 java.lang.String getDatabaseTypeIdentifier()
          Returns the identifier for the type of database currently in use which can be used to construct package and class names. It will be one of the constants defined in this class (SAPDB, HSQLDB, etc.).
 
Methods inherited from class org.opensubsystems.core.persist.db.sapdb.SapDBDatabaseImpl
createDatabaseInstance, createUser, getCurrentTimestampFunctionCall, getDatabaseHost, getDatabaseName, getSQLAnalyzeFunctionCall, getSQLCountFunctionCall, insertAndFetchGeneratedValues, isCallableStatement, preferCountToLast, startDatabaseServer, stop, updatedAndFetchGeneratedValues
 
Methods inherited from class org.opensubsystems.core.persist.db.DatabaseImpl
add, add, getAdminConnection, getConnectionTestStatement, getInstance, getInstanceIfStarted, getSelectListResultSetConcurrency, getSelectListResultSetType, getTransactionIsolation, hasAbsolutePositioningSupport, hasSelectListRangeSupport, isStarted, setInstance, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxDBDatabaseImpl

public MaxDBDatabaseImpl()
                  throws OSSException
Default constructor for empty database.

Throws:
OSSException - - problem connecting to database
Method Detail

getDatabaseType

public int getDatabaseType()
Returns the type of database currently in use. It will be one of the constants defined in this class (SAPDB, HSQLDB, etc.).

Specified by:
getDatabaseType in interface Database
Overrides:
getDatabaseType in class SapDBDatabaseImpl
Returns:
int - database type

getDatabaseTypeIdentifier

public java.lang.String getDatabaseTypeIdentifier()
Returns the identifier for the type of database currently in use which can be used to construct package and class names. It will be one of the constants defined in this class (SAPDB, HSQLDB, etc.).

Specified by:
getDatabaseTypeIdentifier in interface Database
Overrides:
getDatabaseTypeIdentifier in class SapDBDatabaseImpl
Returns:
String - database type


Copyright © 2003 - 2006 OpenSubsystems s.r.o.