org.opensubsystems.core.persist.db
Interface BasicDatabaseFactory
- All Superinterfaces:
- DatabaseFactory
- All Known Subinterfaces:
- ModifiableDatabaseFactory
public interface BasicDatabaseFactory
- extends DatabaseFactory
This interface defines methods, which should be implemented by factory
which support batched insert operation.
- Version:
- $Id: BasicDatabaseFactory.java,v 1.3 2007/01/07 06:14:18 bastafidli Exp $
- Author:
- Miro Halas
- Code reviewer:
- Miro Halas
- Code reviewed:
- 1.1 2006/07/26 00:02:45 jlegeny
|
Method Summary |
int |
setValuesForInsert(java.sql.PreparedStatement insertStatement,
DataObject data,
int initialIndex)
Method sets values to the prepared statement for insert of data object. |
setValuesForInsert
int setValuesForInsert(java.sql.PreparedStatement insertStatement,
DataObject data,
int initialIndex)
throws OSSException,
java.sql.SQLException
- Method sets values to the prepared statement for insert of data object.
- Parameters:
insertStatement - - prepared statement the values will be set up fordata - - data object to insert, based on the type of the data object
it can be determined what data are we insertinginitialIndex - - initial index for values to be set up into statement
- Returns:
- int - index of the last parameter in prepared statement (can be used
for later processing outside of this method)
- Throws:
OSSException - - exception during setting values
java.sql.SQLException - - exception during setting values
Copyright © 2003 - 2006 OpenSubsystems s.r.o.