|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.SQLManyToManyReference
public class SQLManyToManyReference
INTERNAL: Class that performs the task of accessing and manipulating M:M reference fields in the database.
| Field Summary | |
|---|---|
protected RDBMSAccess |
access
|
protected int |
batchSize
|
protected boolean |
close_stm
|
protected boolean |
debug
|
protected FieldInfoIF |
field
|
protected FieldInfoIF |
identity_field
|
protected FieldInfoIF[] |
select_fields
|
protected String |
sql_add
|
protected String |
sql_clear
|
protected String |
sql_load
|
protected String |
sql_load_multiple
|
protected String |
sql_remove
|
protected FieldInfoIF |
value_field
|
| Constructor Summary | |
|---|---|
SQLManyToManyReference(RDBMSAccess access,
FieldInfoIF field)
|
|
| Method Summary | |
|---|---|
protected void |
add_bindParameters(PreparedStatement stm,
IdentityIF identity,
Object value)
|
protected PreparedStatement |
add_getStatement()
|
protected void |
add(IdentityIF identity,
Collection values)
|
protected void |
clear_bindParameters(PreparedStatement stm,
IdentityIF identity)
|
protected PreparedStatement |
clear_getStatement()
|
void |
clear(IdentityIF identity)
INTERNAL: Clears the field value for the given object identity. |
protected void |
executeUpdate(PreparedStatement stm,
String sql)
|
Object |
load(AccessRegistrarIF registrar,
IdentityIF identity)
INTERNAL: Loads the field value for the given object identity. |
Object |
loadMultiple(AccessRegistrarIF registrar,
Collection identities,
IdentityIF current)
INTERNAL: Loads the field value for all the given object identities. |
protected void |
remove_bindParameters(PreparedStatement stm,
IdentityIF identity,
Object value)
|
protected PreparedStatement |
remove_getStatement()
|
protected void |
remove(IdentityIF identity,
Collection values)
|
void |
storeDirty(ObjectAccessIF oaccess,
Object object)
INTERNAL: The object field is dirty and a call to this method should cause the field value to be updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean debug
protected RDBMSAccess access
protected FieldInfoIF field
protected String sql_load
protected String sql_load_multiple
protected String sql_add
protected String sql_remove
protected String sql_clear
protected FieldInfoIF identity_field
protected FieldInfoIF[] select_fields
protected FieldInfoIF value_field
protected boolean close_stm
protected int batchSize
| Constructor Detail |
|---|
public SQLManyToManyReference(RDBMSAccess access,
FieldInfoIF field)
| Method Detail |
|---|
public Object load(AccessRegistrarIF registrar,
IdentityIF identity)
throws Exception
FieldAccessIF
load in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.
Exception
public Object loadMultiple(AccessRegistrarIF registrar,
Collection identities,
IdentityIF current)
throws Exception
FieldAccessIF
loadMultiple in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.
Exception
protected void add(IdentityIF identity,
Collection values)
throws Exception
Exception
protected PreparedStatement add_getStatement()
throws SQLException
SQLException
protected void add_bindParameters(PreparedStatement stm,
IdentityIF identity,
Object value)
throws Exception
Exception
protected void remove(IdentityIF identity,
Collection values)
throws Exception
Exception
protected PreparedStatement remove_getStatement()
throws SQLException
SQLException
protected void remove_bindParameters(PreparedStatement stm,
IdentityIF identity,
Object value)
throws Exception
Exception
public void clear(IdentityIF identity)
throws Exception
FieldAccessIF
clear in interface FieldAccessIFException
protected PreparedStatement clear_getStatement()
throws SQLException
SQLException
protected void clear_bindParameters(PreparedStatement stm,
IdentityIF identity)
throws Exception
Exception
public void storeDirty(ObjectAccessIF oaccess,
Object object)
throws Exception
FieldAccessIF
storeDirty in interface FieldAccessIFException
protected void executeUpdate(PreparedStatement stm,
String sql)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||