Package net.ontopia.persistence.proxy
Class SQLBatchOneToManyReference
- java.lang.Object
-
- net.ontopia.persistence.proxy.SQLOneToManyReference
-
- net.ontopia.persistence.proxy.SQLBatchOneToManyReference
-
- All Implemented Interfaces:
FieldAccessIF
,FlushableIF
public class SQLBatchOneToManyReference extends SQLOneToManyReference implements FlushableIF
INTERNAL: Class that performs the task of accessing and manipulating 1:M reference fields in the database.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
debug
protected PreparedStatement
stm_add
protected PreparedStatement
stm_clear
protected PreparedStatement
stm_remove
-
Fields inherited from class net.ontopia.persistence.proxy.SQLOneToManyReference
access, batchSize, close_stm, field, identity_field, select_fields, sql_add, sql_clear, sql_load, sql_load_multiple, sql_remove, value_field
-
-
Constructor Summary
Constructors Constructor Description SQLBatchOneToManyReference(RDBMSAccess access, FieldInfoIF field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PreparedStatement
add_getStatement()
protected PreparedStatement
clear_getStatement()
protected void
executeUpdate(PreparedStatement stm, String sql)
void
flush()
INTERNAL: Tells the object to flush itself.protected PreparedStatement
remove_getStatement()
-
Methods inherited from class net.ontopia.persistence.proxy.SQLOneToManyReference
add, add_bindParameters, clear, clear_bindParameters, load, loadMultiple, remove, remove_bindParameters, storeDirty
-
-
-
-
Field Detail
-
debug
protected boolean debug
-
stm_add
protected PreparedStatement stm_add
-
stm_remove
protected PreparedStatement stm_remove
-
stm_clear
protected PreparedStatement stm_clear
-
-
Constructor Detail
-
SQLBatchOneToManyReference
public SQLBatchOneToManyReference(RDBMSAccess access, FieldInfoIF field)
-
-
Method Detail
-
add_getStatement
protected PreparedStatement add_getStatement() throws SQLException
- Overrides:
add_getStatement
in classSQLOneToManyReference
- Throws:
SQLException
-
remove_getStatement
protected PreparedStatement remove_getStatement() throws SQLException
- Overrides:
remove_getStatement
in classSQLOneToManyReference
- Throws:
SQLException
-
clear_getStatement
protected PreparedStatement clear_getStatement() throws SQLException
- Overrides:
clear_getStatement
in classSQLOneToManyReference
- Throws:
SQLException
-
executeUpdate
protected void executeUpdate(PreparedStatement stm, String sql) throws Exception
- Overrides:
executeUpdate
in classSQLOneToManyReference
- Throws:
Exception
-
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
-
-