net.ontopia.persistence.proxy
Class SQLBatchOneToManyAggregate

java.lang.Object
  extended by net.ontopia.persistence.proxy.SQLOneToManyAggregate
      extended by net.ontopia.persistence.proxy.SQLBatchOneToManyAggregate
All Implemented Interfaces:
FieldAccessIF, FlushableIF

public class SQLBatchOneToManyAggregate
extends SQLOneToManyAggregate
implements FlushableIF

INTERNAL: Class that performs the task of accessing and manipulating 1:M aggregate fields in the database.


Field Summary
protected  boolean debug
           
protected  PreparedStatement stm_add
           
protected  PreparedStatement stm_clear
           
protected  PreparedStatement stm_remove
           
 
Fields inherited from class net.ontopia.persistence.proxy.SQLOneToManyAggregate
access, batchSize, cinfo, close_stm, field, identity_field, select_fields, sql_add, sql_clear, sql_load, sql_load_multiple, sql_remove
 
Constructor Summary
SQLBatchOneToManyAggregate(RDBMSAccess access, FieldInfoIF field)
           
 
Method Summary
protected  PreparedStatement add_getStatement()
           
protected  PreparedStatement clear_getStatement()
           
protected  void executeUpdate(PreparedStatement stm, String sql)
           
 void flush()
          INTERNAL: Tells the object to flush itself.
protected  PreparedStatement remove_getStatement()
           
 
Methods inherited from class net.ontopia.persistence.proxy.SQLOneToManyAggregate
add_bindParameters, add, clear_bindParameters, clear, load, loadMultiple, remove_bindParameters, remove, storeDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected boolean debug

stm_add

protected PreparedStatement stm_add

stm_remove

protected PreparedStatement stm_remove

stm_clear

protected PreparedStatement stm_clear
Constructor Detail

SQLBatchOneToManyAggregate

public SQLBatchOneToManyAggregate(RDBMSAccess access,
                                  FieldInfoIF field)
Method Detail

add_getStatement

protected PreparedStatement add_getStatement()
                                      throws SQLException
Overrides:
add_getStatement in class SQLOneToManyAggregate
Throws:
SQLException

remove_getStatement

protected PreparedStatement remove_getStatement()
                                         throws SQLException
Overrides:
remove_getStatement in class SQLOneToManyAggregate
Throws:
SQLException

clear_getStatement

protected PreparedStatement clear_getStatement()
                                        throws SQLException
Overrides:
clear_getStatement in class SQLOneToManyAggregate
Throws:
SQLException

executeUpdate

protected void executeUpdate(PreparedStatement stm,
                             String sql)
                      throws Exception
Overrides:
executeUpdate in class SQLOneToManyAggregate
Throws:
Exception

flush

public void flush()
           throws Exception
Description copied from interface: FlushableIF
INTERNAL: Tells the object to flush itself.

Specified by:
flush in interface FlushableIF
Throws:
Exception


Copyright © 2000-2012 Ontopia.