Package net.ontopia.persistence.proxy
Class SQLBatchObjectAccess
- java.lang.Object
-
- net.ontopia.persistence.proxy.SQLObjectAccess
-
- 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
Fields Modifier and Type Field Description protected booleandebugprotected PreparedStatementstm_createprotected PreparedStatementstm_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
Constructors Constructor Description SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(ObjectAccessIF oaccess, Object object)INTERNAL: Creates the new object identity in the database.voiddelete(IdentityIF identity)INTERNAL: Deletes the object identity in the database.voidflush()INTERNAL: Tells the object to flush itself.protected PreparedStatementget_createStatement()protected PreparedStatementget_deleteStatement()protected FieldAccessIFgetFieldAccess(int field)-
Methods inherited from class net.ontopia.persistence.proxy.SQLObjectAccess
bindParametersCreate, bindParametersDelete, clearFields, delete, load, loadField, loadFieldMultiple, storeDirty
-
-
-
-
Field Detail
-
debug
protected boolean debug
-
stm_create
protected PreparedStatement stm_create
-
stm_delete
protected PreparedStatement stm_delete
-
-
Constructor Detail
-
SQLBatchObjectAccess
public SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
-
-
Method Detail
-
getFieldAccess
protected FieldAccessIF getFieldAccess(int field)
- Overrides:
getFieldAccessin classSQLObjectAccess
-
flush
public void flush() throws ExceptionDescription copied from interface:FlushableIFINTERNAL: Tells the object to flush itself.- Specified by:
flushin interfaceFlushableIF- Throws:
Exception
-
create
public void create(ObjectAccessIF oaccess, Object object) throws Exception
INTERNAL: Creates the new object identity in the database.- Specified by:
createin interfaceClassAccessIF- Overrides:
createin classSQLObjectAccess- Throws:
Exception
-
get_createStatement
protected PreparedStatement get_createStatement() throws SQLException
- Throws:
SQLException
-
delete
public void delete(IdentityIF identity) throws Exception
INTERNAL: Deletes the object identity in the database.- Throws:
Exception
-
get_deleteStatement
protected PreparedStatement get_deleteStatement() throws SQLException
- Throws:
SQLException
-
-