public class SQLBatchObjectAccess extends SQLObjectAccess implements FlushableIF
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
protected PreparedStatement |
stm_create |
protected PreparedStatement |
stm_delete |
access, batchSize, cinfo, faccesses, identity_field, m2m_fields, o2a_fields, o2o_fields, sql_create, sql_delete, sql_load, value_fields
Constructor and Description |
---|
SQLBatchObjectAccess(RDBMSAccess access,
ClassInfoIF cinfo) |
Modifier and Type | Method and 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) |
bindParametersCreate, bindParametersDelete, clearFields, delete, load, loadField, loadFieldMultiple, storeDirty
protected boolean debug
protected PreparedStatement stm_create
protected PreparedStatement stm_delete
public SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
protected FieldAccessIF getFieldAccess(int field)
getFieldAccess
in class SQLObjectAccess
public void flush() throws Exception
FlushableIF
flush
in interface FlushableIF
Exception
public void create(ObjectAccessIF oaccess, Object object) throws Exception
create
in interface ClassAccessIF
create
in class SQLObjectAccess
Exception
protected PreparedStatement get_createStatement() throws SQLException
SQLException
public void delete(IdentityIF identity) throws Exception
Exception
protected PreparedStatement get_deleteStatement() throws SQLException
SQLException