|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.proxy.SQLOneToManyReference
public class SQLOneToManyReference
INTERNAL: Class that performs the task of accessing and manipulating 1: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 java.lang.String |
sql_add
|
protected java.lang.String |
sql_clear
|
protected java.lang.String |
sql_load
|
protected java.lang.String |
sql_load_multiple
|
protected java.lang.String |
sql_remove
|
protected FieldInfoIF |
value_field
|
| Constructor Summary | |
|---|---|
SQLOneToManyReference(RDBMSAccess access,
FieldInfoIF field)
|
|
| Method Summary | |
|---|---|
protected void |
add_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity,
java.lang.Object value)
|
protected java.sql.PreparedStatement |
add_getStatement()
|
protected void |
add(IdentityIF identity,
java.util.Collection values)
|
protected void |
clear_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity)
|
protected java.sql.PreparedStatement |
clear_getStatement()
|
void |
clear(IdentityIF identity)
INTERNAL: Clears the field value for the given object identity. |
protected void |
executeUpdate(java.sql.PreparedStatement stm,
java.lang.String sql)
|
java.lang.Object |
load(AccessRegistrarIF registrar,
IdentityIF identity)
INTERNAL: Loads the field value for the given object identity. |
java.lang.Object |
loadMultiple(AccessRegistrarIF registrar,
java.util.Collection identities,
IdentityIF current)
INTERNAL: Loads the field value for all the given object identities. |
protected void |
remove_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity,
java.lang.Object value)
|
protected java.sql.PreparedStatement |
remove_getStatement()
|
protected void |
remove(IdentityIF identity,
java.util.Collection values)
|
void |
storeDirty(ObjectAccessIF oaccess,
java.lang.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 java.lang.String sql_load
protected java.lang.String sql_load_multiple
protected java.lang.String sql_add
protected java.lang.String sql_remove
protected java.lang.String sql_clear
protected FieldInfoIF[] select_fields
protected FieldInfoIF identity_field
protected FieldInfoIF value_field
protected boolean close_stm
protected int batchSize
| Constructor Detail |
|---|
public SQLOneToManyReference(RDBMSAccess access,
FieldInfoIF field)
| Method Detail |
|---|
public java.lang.Object load(AccessRegistrarIF registrar,
IdentityIF identity)
throws java.lang.Exception
FieldAccessIF
load in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.
java.lang.Exception
public java.lang.Object loadMultiple(AccessRegistrarIF registrar,
java.util.Collection identities,
IdentityIF current)
throws java.lang.Exception
FieldAccessIF
loadMultiple in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.
java.lang.Exception
protected void add(IdentityIF identity,
java.util.Collection values)
throws java.lang.Exception
java.lang.Exception
protected java.sql.PreparedStatement add_getStatement()
throws java.sql.SQLException
java.sql.SQLException
protected void add_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity,
java.lang.Object value)
throws java.lang.Exception
java.lang.Exception
protected void remove(IdentityIF identity,
java.util.Collection values)
throws java.lang.Exception
java.lang.Exception
protected java.sql.PreparedStatement remove_getStatement()
throws java.sql.SQLException
java.sql.SQLException
protected void remove_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity,
java.lang.Object value)
throws java.lang.Exception
java.lang.Exception
public void clear(IdentityIF identity)
throws java.lang.Exception
FieldAccessIF
clear in interface FieldAccessIFjava.lang.Exception
protected java.sql.PreparedStatement clear_getStatement()
throws java.sql.SQLException
java.sql.SQLException
protected void clear_bindParameters(java.sql.PreparedStatement stm,
IdentityIF identity)
throws java.lang.Exception
java.lang.Exception
public void storeDirty(ObjectAccessIF oaccess,
java.lang.Object object)
throws java.lang.Exception
FieldAccessIF
storeDirty in interface FieldAccessIFjava.lang.Exception
protected void executeUpdate(java.sql.PreparedStatement stm,
java.lang.String sql)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||