|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.SQLOneToOne
public class SQLOneToOne
INTERNAL: Class that performs the task of accessing and manipulating 1:1 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 FieldInfoIF[] |
select_fields_ref
|
protected int |
select_value_index
|
protected java.lang.String |
sql_load
|
protected java.lang.String |
sql_load_multiple
|
protected java.lang.String |
sql_set
|
protected FieldInfoIF |
value_field
|
Constructor Summary | |
---|---|
SQLOneToOne(RDBMSAccess access,
FieldInfoIF field)
|
Method Summary | |
---|---|
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 java.sql.PreparedStatement |
set_getStatement()
|
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 java.lang.String sql_load
protected java.lang.String sql_load_multiple
protected java.lang.String sql_set
protected FieldInfoIF identity_field
protected FieldInfoIF[] select_fields
protected FieldInfoIF[] select_fields_ref
protected FieldInfoIF value_field
protected FieldInfoIF field
protected int select_value_index
protected boolean close_stm
protected int batchSize
Constructor Detail |
---|
public SQLOneToOne(RDBMSAccess access, FieldInfoIF field)
Method Detail |
---|
public java.lang.Object load(AccessRegistrarIF registrar, IdentityIF identity) throws java.lang.Exception
FieldAccessIF
load
in interface FieldAccessIF
IdentityNotFoundException
- 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 FieldAccessIF
IdentityNotFoundException
- if the identity was not found.
java.lang.Exception
public void clear(IdentityIF identity) throws java.lang.Exception
FieldAccessIF
clear
in interface FieldAccessIF
java.lang.Exception
public void storeDirty(ObjectAccessIF oaccess, java.lang.Object object) throws java.lang.Exception
FieldAccessIF
storeDirty
in interface FieldAccessIF
java.lang.Exception
protected java.sql.PreparedStatement set_getStatement() throws java.sql.SQLException
java.sql.SQLException
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 |