|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.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 String |
sql_load
|
protected String |
sql_load_multiple
|
protected 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(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 PreparedStatement |
set_getStatement()
|
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 String sql_load
protected String sql_load_multiple
protected 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 Object load(AccessRegistrarIF registrar, IdentityIF identity) throws Exception
FieldAccessIF
load
in interface FieldAccessIF
IdentityNotFoundException
- if the identity was not found.
Exception
public Object loadMultiple(AccessRegistrarIF registrar, Collection identities, IdentityIF current) throws Exception
FieldAccessIF
loadMultiple
in interface FieldAccessIF
IdentityNotFoundException
- if the identity was not found.
Exception
public void clear(IdentityIF identity) throws Exception
FieldAccessIF
clear
in interface FieldAccessIF
Exception
public void storeDirty(ObjectAccessIF oaccess, Object object) throws Exception
FieldAccessIF
storeDirty
in interface FieldAccessIF
Exception
protected PreparedStatement set_getStatement() throws SQLException
SQLException
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 |