org.opensubsystems.core.persist.db
Interface DatabaseFactory

All Known Subinterfaces:
BasicDatabaseFactory, ModifiableDatabaseFactory
All Known Implementing Classes:
DatabaseFactoryImpl

public interface DatabaseFactory

This interface should be implemented by all data object factories, which support basic operations with data objects persisted in the database.

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

Method Summary
 DataObject load(java.sql.ResultSet rsQueryResults, int initialIndex)
          Load full DataObject from the result set.
 

Method Detail

load

DataObject load(java.sql.ResultSet rsQueryResults,
                int initialIndex)
                throws OSSDatabaseAccessException
Load full DataObject from the result set. It is used when all attributes of the data objects should be loaded as efficiently as possible. Every data has to be loaded otherwise we couldn't test the existence data therefore this method is commong to all the database factories

Parameters:
rsQueryResults - - ResultSet retrieved from the database
initialIndex - - initial column index in the result set to retrieve, by default this is 1. This allows to include columns for this database factory mixed with columns for other database factories and the load them efficiently.
Returns:
DataObject - with specific columns set
Throws:
OSSDatabaseAccessException - - error during ResultSet parsing


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