public class SQLOneToOne extends Object implements FieldAccessIF
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SQLOneToOne(RDBMSAccess access,
FieldInfoIF field) |
| Modifier and Type | Method and Description |
|---|---|
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<IdentityIF> 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.
|
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
public SQLOneToOne(RDBMSAccess access, FieldInfoIF field)
public Object load(AccessRegistrarIF registrar, IdentityIF identity) throws Exception
FieldAccessIFload in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.Exceptionpublic Object loadMultiple(AccessRegistrarIF registrar, Collection<IdentityIF> identities, IdentityIF current) throws Exception
FieldAccessIFloadMultiple in interface FieldAccessIFIdentityNotFoundException - if the identity was not found.Exceptionpublic void clear(IdentityIF identity) throws Exception
FieldAccessIFclear in interface FieldAccessIFExceptionpublic void storeDirty(ObjectAccessIF oaccess, Object object) throws Exception
FieldAccessIFstoreDirty in interface FieldAccessIFExceptionprotected PreparedStatement set_getStatement() throws SQLException
SQLExceptionprotected void executeUpdate(PreparedStatement stm, String sql) throws Exception
Exception