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
FieldAccessIF
load
in interface FieldAccessIF
IdentityNotFoundException
- if the identity was not found.Exception
public Object loadMultiple(AccessRegistrarIF registrar, Collection<IdentityIF> 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