org.opensubsystems.core.persist.db
Class DatabaseFactoryImpl

java.lang.Object
  extended by org.opensubsystems.core.persist.db.DatabaseFactoryImpl
All Implemented Interfaces:
DatabaseFactory

public abstract class DatabaseFactoryImpl
extends java.lang.Object
implements DatabaseFactory

Base class for all database factories. This class is mainly collecting reusable code that can be useful for other factories.

Version:
$Id: DatabaseFactoryImpl.java,v 1.17 2007/01/07 06:14:18 bastafidli Exp $
Author:
Miroslav Halas
Code reviewer:
Miroslav Halas
Code reviewed:
1.6 2004/12/06 21:56:24 jlegeny

Field Summary
protected  DatabaseConnectionFactory m_connectionFactory
          Connection factory to use to get connections to the database.
protected  int m_iConcurrencySelectListResultSet
          Result set concurrency to use load list, see ResultSet.CONCUR_XXX constants.
protected  int m_iDataType
          Data type code for DataObject.
protected  int m_iTypeSelectListResultSet
          Result set type to use load list, see ResultSet.TYPE_XXX constants.
protected  DatabaseTransactionFactory m_transactionFactory
          Transaction factory to use to manage transactions on database connections.
 
Constructor Summary
DatabaseFactoryImpl(int iDataType)
          Default constructor
 
Method Summary
 int getConcurrencySelectListResultSet()
           
 int getDataType()
          Get data type code for DataObject.
 int getTypeSelectListResultSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensubsystems.core.persist.db.DatabaseFactory
load
 

Field Detail

m_connectionFactory

protected DatabaseConnectionFactory m_connectionFactory
Connection factory to use to get connections to the database.


m_transactionFactory

protected DatabaseTransactionFactory m_transactionFactory
Transaction factory to use to manage transactions on database connections.


m_iTypeSelectListResultSet

protected int m_iTypeSelectListResultSet
Result set type to use load list, see ResultSet.TYPE_XXX constants.


m_iConcurrencySelectListResultSet

protected int m_iConcurrencySelectListResultSet
Result set concurrency to use load list, see ResultSet.CONCUR_XXX constants.


m_iDataType

protected int m_iDataType
Data type code for DataObject.

Constructor Detail

DatabaseFactoryImpl

public DatabaseFactoryImpl(int iDataType)
                    throws OSSException
Default constructor

Parameters:
iDataType - - data type the factory will be used for
Throws:
OSSException - - an error has occured
Method Detail

getConcurrencySelectListResultSet

public int getConcurrencySelectListResultSet()
Returns:
int - result set concurrency to use load list, see ResultSet.CONCUR_XXX constants.

getTypeSelectListResultSet

public int getTypeSelectListResultSet()
Returns:
int - Result set type to use load list, see ResultSet.TYPE_XXX constants.

getDataType

public int getDataType()
Get data type code for DataObject.

Returns:
int - unique data type code


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