|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.SQLCollectionAccess
public class SQLCollectionAccess
INTERNAL: Class that performs the task of accessing and manipulating "collection" type instances in the database.
NOTE: Collection type instances must have an identity field and exactly one value field.
Field Summary | |
---|---|
protected RDBMSAccess |
access
|
protected ClassInfoIF |
cinfo
|
protected boolean |
debug
|
protected FieldInfoIF |
identity_field
|
protected java.lang.String |
sql_add
|
protected java.lang.String |
sql_delete
|
protected java.lang.String |
sql_load
|
protected java.lang.String |
sql_remove
|
protected FieldInfoIF |
value_field
|
Constructor Summary | |
---|---|
SQLCollectionAccess(RDBMSAccess access,
ClassInfoIF cinfo)
|
Method Summary | |
---|---|
protected void |
bindParametersAddRemove(java.sql.PreparedStatement stm,
ObjectAccessIF oaccess,
IdentityIF identity,
java.lang.Object element)
|
protected void |
bindParametersDelete(java.sql.PreparedStatement stm,
IdentityIF identity)
|
void |
create(ObjectAccessIF oaccess,
java.lang.Object object)
INTERNAL: Creates the new object in the database. |
void |
delete(ObjectAccessIF oaccess,
java.lang.Object object)
INTERNAL: Deletes the object identity from the database. |
boolean |
load(AccessRegistrarIF registrar,
IdentityIF identity)
INTERNAL: Loads the object identity from the database. |
java.lang.Object |
loadField(AccessRegistrarIF registrar,
IdentityIF identity,
int field)
INTERNAL: Loads the specified object field for the given identity from the database. |
java.lang.Object |
loadFieldMultiple(AccessRegistrarIF registrar,
java.util.Collection identities,
IdentityIF current,
int field)
INTERNAL: Loads the specified object field for the given identitys from the database. |
protected void |
storeAdded(ObjectAccessIF oaccess,
IdentityIF identity,
java.util.Collection elements)
|
void |
storeDirty(ObjectAccessIF oaccess,
java.lang.Object object)
INTERNAL: Stores object fields that are dirty in the database. |
protected void |
storeRemoved(ObjectAccessIF oaccess,
IdentityIF identity,
java.util.Collection elements)
|
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 ClassInfoIF cinfo
protected java.lang.String sql_load
protected java.lang.String sql_add
protected java.lang.String sql_remove
protected java.lang.String sql_delete
protected FieldInfoIF identity_field
protected FieldInfoIF value_field
Constructor Detail |
---|
public SQLCollectionAccess(RDBMSAccess access, ClassInfoIF cinfo)
Method Detail |
---|
public boolean load(AccessRegistrarIF registrar, IdentityIF identity) throws java.lang.Exception
ClassAccessIF
load
in interface ClassAccessIF
java.lang.Exception
public java.lang.Object loadField(AccessRegistrarIF registrar, IdentityIF identity, int field)
ClassAccessIF
loadField
in interface ClassAccessIF
public java.lang.Object loadFieldMultiple(AccessRegistrarIF registrar, java.util.Collection identities, IdentityIF current, int field)
ClassAccessIF
loadFieldMultiple
in interface ClassAccessIF
public void create(ObjectAccessIF oaccess, java.lang.Object object) throws java.lang.Exception
ClassAccessIF
create
in interface ClassAccessIF
java.lang.Exception
public void delete(ObjectAccessIF oaccess, java.lang.Object object) throws java.lang.Exception
ClassAccessIF
delete
in interface ClassAccessIF
java.lang.Exception
protected void bindParametersDelete(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
ClassAccessIF
storeDirty
in interface ClassAccessIF
java.lang.Exception
protected void storeAdded(ObjectAccessIF oaccess, IdentityIF identity, java.util.Collection elements) throws java.lang.Exception
java.lang.Exception
protected void bindParametersAddRemove(java.sql.PreparedStatement stm, ObjectAccessIF oaccess, IdentityIF identity, java.lang.Object element) throws java.lang.Exception
java.lang.Exception
protected void storeRemoved(ObjectAccessIF oaccess, IdentityIF identity, java.util.Collection elements) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |