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, storeDirtyprotected boolean debug
protected PreparedStatement stm_create
protected PreparedStatement stm_delete
public SQLBatchObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
protected FieldAccessIF getFieldAccess(int field)
getFieldAccess in class SQLObjectAccesspublic void flush()
throws Exception
FlushableIFflush in interface FlushableIFExceptionpublic void create(ObjectAccessIF oaccess, Object object) throws Exception
create in interface ClassAccessIFcreate in class SQLObjectAccessExceptionprotected PreparedStatement get_createStatement() throws SQLException
SQLExceptionpublic void delete(IdentityIF identity) throws Exception
Exceptionprotected PreparedStatement get_deleteStatement() throws SQLException
SQLException