|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.SQLObjectAccess
public class SQLObjectAccess
INTERNAL: Class that performs the task of accessing and manipulating "identifiable object type" instances in the database.
Field Summary | |
---|---|
protected RDBMSAccess |
access
|
static int |
batchSize
|
protected ClassInfoIF |
cinfo
|
protected boolean |
debug
|
protected FieldAccessIF[] |
faccesses
|
protected FieldInfoIF |
identity_field
|
protected FieldInfoIF[] |
m2m_fields
|
protected FieldInfoIF[] |
o2a_fields
|
protected FieldInfoIF[] |
o2o_fields
|
protected java.lang.String |
sql_create
|
protected java.lang.String |
sql_delete
|
protected java.lang.String |
sql_load
|
protected FieldInfoIF[] |
value_fields
|
Constructor Summary | |
---|---|
SQLObjectAccess(RDBMSAccess access,
ClassInfoIF cinfo)
|
Method Summary | |
---|---|
protected void |
bindParametersCreate(java.sql.PreparedStatement stm,
ObjectAccessIF oaccess,
java.lang.Object object)
|
protected void |
bindParametersDelete(java.sql.PreparedStatement stm,
IdentityIF identity)
|
protected void |
clearFields(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. |
protected FieldAccessIF |
getFieldAccess(int field)
|
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. |
void |
storeDirty(ObjectAccessIF oaccess,
java.lang.Object object)
INTERNAL: Stores object fields that are dirty in the database. |
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_create
protected java.lang.String sql_delete
protected FieldInfoIF identity_field
protected FieldInfoIF[] value_fields
protected FieldInfoIF[] o2o_fields
protected FieldInfoIF[] o2a_fields
protected FieldInfoIF[] m2m_fields
protected FieldAccessIF[] faccesses
public static int batchSize
Constructor Detail |
---|
public SQLObjectAccess(RDBMSAccess access, ClassInfoIF cinfo)
Method Detail |
---|
protected FieldAccessIF getFieldAccess(int field)
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
protected void bindParametersCreate(java.sql.PreparedStatement stm, ObjectAccessIF oaccess, java.lang.Object object) throws java.lang.Exception
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
protected void clearFields(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |