net.ontopia.persistence.proxy
Class SQLBatchObjectAccess

java.lang.Object
  extended by net.ontopia.persistence.proxy.SQLObjectAccess
      extended by net.ontopia.persistence.proxy.SQLBatchObjectAccess
All Implemented Interfaces:
ClassAccessIF, FlushableIF

public class SQLBatchObjectAccess
extends SQLObjectAccess
implements FlushableIF

INTERNAL: Class that performs the task of creating new objects in the database.


Field Summary
protected  boolean debug
           
protected  java.sql.PreparedStatement stm_create
           
protected  java.sql.PreparedStatement stm_delete
           
 
Fields inherited from class net.ontopia.persistence.proxy.SQLObjectAccess
access, batchSize, cinfo, faccesses, identity_field, m2m_fields, o2a_fields, o2o_fields, sql_create, sql_delete, sql_load, value_fields
 
Constructor Summary
SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
           
 
Method Summary
 void create(ObjectAccessIF oaccess, java.lang.Object object)
          INTERNAL: Creates the new object identity in the database.
 void delete(IdentityIF identity)
          INTERNAL: Deletes the object identity in the database.
 void flush()
          INTERNAL: Tells the object to flush itself.
protected  java.sql.PreparedStatement get_createStatement()
           
protected  java.sql.PreparedStatement get_deleteStatement()
           
protected  FieldAccessIF getFieldAccess(int field)
           
 
Methods inherited from class net.ontopia.persistence.proxy.SQLObjectAccess
bindParametersCreate, bindParametersDelete, clearFields, delete, load, loadField, loadFieldMultiple, 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_create

protected java.sql.PreparedStatement stm_create

stm_delete

protected java.sql.PreparedStatement stm_delete
Constructor Detail

SQLBatchObjectAccess

public SQLBatchObjectAccess(RDBMSAccess access,
                            ClassInfoIF cinfo)
Method Detail

getFieldAccess

protected FieldAccessIF getFieldAccess(int field)
Overrides:
getFieldAccess in class SQLObjectAccess

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

create

public void create(ObjectAccessIF oaccess,
                   java.lang.Object object)
            throws java.lang.Exception
INTERNAL: Creates the new object identity in the database.

Specified by:
create in interface ClassAccessIF
Overrides:
create in class SQLObjectAccess
Throws:
java.lang.Exception

get_createStatement

protected java.sql.PreparedStatement get_createStatement()
                                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

delete

public void delete(IdentityIF identity)
            throws java.lang.Exception
INTERNAL: Deletes the object identity in the database.

Throws:
java.lang.Exception

get_deleteStatement

protected java.sql.PreparedStatement get_deleteStatement()
                                                  throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2000-2012 Ontopia.