net.ontopia.persistence.proxy
Class SQLBatchOneToManyReference

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

public class SQLBatchOneToManyReference
extends SQLOneToManyReference
implements FlushableIF

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


Field Summary
protected  boolean debug
           
protected  java.sql.PreparedStatement stm_add
           
protected  java.sql.PreparedStatement stm_clear
           
protected  java.sql.PreparedStatement stm_remove
           
 
Fields inherited from class net.ontopia.persistence.proxy.SQLOneToManyReference
access, batchSize, close_stm, field, identity_field, select_fields, sql_add, sql_clear, sql_load, sql_load_multiple, sql_remove, value_field
 
Constructor Summary
SQLBatchOneToManyReference(RDBMSAccess access, FieldInfoIF field)
           
 
Method Summary
protected  java.sql.PreparedStatement add_getStatement()
           
protected  java.sql.PreparedStatement clear_getStatement()
           
protected  void executeUpdate(java.sql.PreparedStatement stm, java.lang.String sql)
           
 void flush()
          INTERNAL: Tells the object to flush itself.
protected  java.sql.PreparedStatement remove_getStatement()
           
 
Methods inherited from class net.ontopia.persistence.proxy.SQLOneToManyReference
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 java.sql.PreparedStatement stm_add

stm_remove

protected java.sql.PreparedStatement stm_remove

stm_clear

protected java.sql.PreparedStatement stm_clear
Constructor Detail

SQLBatchOneToManyReference

public SQLBatchOneToManyReference(RDBMSAccess access,
                                  FieldInfoIF field)
Method Detail

add_getStatement

protected java.sql.PreparedStatement add_getStatement()
                                               throws java.sql.SQLException
Overrides:
add_getStatement in class SQLOneToManyReference
Throws:
java.sql.SQLException

remove_getStatement

protected java.sql.PreparedStatement remove_getStatement()
                                                  throws java.sql.SQLException
Overrides:
remove_getStatement in class SQLOneToManyReference
Throws:
java.sql.SQLException

clear_getStatement

protected java.sql.PreparedStatement clear_getStatement()
                                                 throws java.sql.SQLException
Overrides:
clear_getStatement in class SQLOneToManyReference
Throws:
java.sql.SQLException

executeUpdate

protected void executeUpdate(java.sql.PreparedStatement stm,
                             java.lang.String sql)
                      throws java.lang.Exception
Overrides:
executeUpdate in class SQLOneToManyReference
Throws:
java.lang.Exception

flush

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

Specified by:
flush in interface FlushableIF
Throws:
java.lang.Exception


Copyright © 2000-2012 Ontopia.