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 boolean
debug
protected PreparedStatement
stm_create
protected 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
Constructors Constructor Description SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(ObjectAccessIF oaccess, 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 PreparedStatement
get_createStatement()
protected 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
-
-
-
-
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:
getFieldAccess
in classSQLObjectAccess
-
flush
public void flush() throws Exception
Description copied from interface:FlushableIF
INTERNAL: Tells the object to flush itself.- Specified by:
flush
in interfaceFlushableIF
- Throws:
Exception
-
create
public void create(ObjectAccessIF oaccess, Object object) throws Exception
INTERNAL: Creates the new object identity in the database.- Specified by:
create
in interfaceClassAccessIF
- Overrides:
create
in 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
-
-