org.opensubsystems.patterns.listdata.persist.db
Interface ListDatabaseFactory
- All Known Implementing Classes:
- ListDatabaseFactoryImpl
public interface ListDatabaseFactory
This interface should be implemented by all data object factories, which
support browsing through list of data object page by pages retrieve from the
database.
- Version:
- $Id: ListDatabaseFactory.java,v 1.3 2007/01/07 06:14:23 bastafidli Exp $
- Author:
- Julo Legeny
- Code reviewer:
- Miro Halas
- Code reviewed:
- Initial revision
|
Method Summary |
org.opensubsystems.core.data.DataObject |
load(java.sql.ResultSet rsResults,
int[] columnCodes,
int initialIndex)
Load partial DataObject from the result set. |
load
org.opensubsystems.core.data.DataObject load(java.sql.ResultSet rsResults,
int[] columnCodes,
int initialIndex)
throws org.opensubsystems.core.error.OSSDatabaseAccessException
- Load partial DataObject from the result set. It is used when only limited
information from DB is requested. That means that only some attributes in
the data object will be initialized and loaded.
- Parameters:
rsResults - - ResultSet retrieved from the databasecolumnCodes - - list of columns selected in ResultSetinitialIndex - - initial column index in the result set to retrieve,
by default this is 1
- Returns:
- DataObject - with specific columns set
- Throws:
org.opensubsystems.core.error.OSSDatabaseAccessException - - error during ResultSet parsing
Copyright © 2003 - 2006 OpenSubsystems s.r.o.