Package net.ontopia.persistence.proxy
Class SQLObjectAccess
java.lang.Object
net.ontopia.persistence.proxy.SQLObjectAccess
- All Implemented Interfaces:
ClassAccessIF
- Direct Known Subclasses:
SQLBatchObjectAccess
INTERNAL: Class that performs the task of accessing and
manipulating "identifiable object type" instances in the database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RDBMSAccessstatic intprotected ClassInfoIFprotected booleanprotected FieldAccessIF[]protected FieldInfoIFprotected FieldInfoIF[]protected FieldInfoIF[]protected FieldInfoIF[]protected Stringprotected Stringprotected Stringprotected FieldInfoIF[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindParametersCreate(PreparedStatement stm, ObjectAccessIF oaccess, Object object) protected voidbindParametersDelete(PreparedStatement stm, IdentityIF identity) protected voidclearFields(IdentityIF identity) voidcreate(ObjectAccessIF oaccess, Object object) INTERNAL: Creates the new object in the database.voiddelete(ObjectAccessIF oaccess, Object object) INTERNAL: Deletes the object identity from the database.protected FieldAccessIFgetFieldAccess(int field) booleanload(AccessRegistrarIF registrar, IdentityIF identity) INTERNAL: Loads the object identity from the database.loadField(AccessRegistrarIF registrar, IdentityIF identity, int field) INTERNAL: Loads the specified object field for the given identity from the database.loadFieldMultiple(AccessRegistrarIF registrar, Collection<IdentityIF> identities, IdentityIF current, int field) INTERNAL: Loads the specified object field for the given identitys from the database.voidstoreDirty(ObjectAccessIF oaccess, Object object) INTERNAL: Stores object fields that are dirty in the database.
-
Field Details
-
batchSize
public static int batchSize -
debug
protected boolean debug -
access
-
cinfo
-
sql_load
-
sql_create
-
sql_delete
-
identity_field
-
value_fields
-
o2o_fields
-
o2a_fields
-
m2m_fields
-
faccesses
-
-
Constructor Details
-
SQLObjectAccess
-
-
Method Details
-
getFieldAccess
-
load
Description copied from interface:ClassAccessIFINTERNAL: Loads the object identity from the database.- Specified by:
loadin interfaceClassAccessIF- Returns:
- true if object was found in the data store, false otherwise.
- Throws:
Exception
-
loadField
Description copied from interface:ClassAccessIFINTERNAL: Loads the specified object field for the given identity from the database.- Specified by:
loadFieldin interfaceClassAccessIF
-
loadFieldMultiple
public Object loadFieldMultiple(AccessRegistrarIF registrar, Collection<IdentityIF> identities, IdentityIF current, int field) Description copied from interface:ClassAccessIFINTERNAL: Loads the specified object field for the given identitys from the database.- Specified by:
loadFieldMultiplein interfaceClassAccessIF
-
create
Description copied from interface:ClassAccessIFINTERNAL: Creates the new object in the database. Note that the object identity can be extracted from the object using the supplied object access instance.- Specified by:
createin interfaceClassAccessIF- Throws:
Exception
-
bindParametersCreate
protected void bindParametersCreate(PreparedStatement stm, ObjectAccessIF oaccess, Object object) throws Exception - Throws:
Exception
-
delete
Description copied from interface:ClassAccessIFINTERNAL: Deletes the object identity from the database.- Specified by:
deletein interfaceClassAccessIF- Throws:
Exception
-
bindParametersDelete
- Throws:
Exception
-
clearFields
- Throws:
Exception
-
storeDirty
Description copied from interface:ClassAccessIFINTERNAL: Stores object fields that are dirty in the database. Note that the object identity can be extracted from the object using the supplied object access instance.- Specified by:
storeDirtyin interfaceClassAccessIF- Throws:
Exception
-