Package net.ontopia.persistence.proxy
Interface ClassAccessIF
-
- All Known Implementing Classes:
SQLBatchObjectAccess,SQLCollectionAccess,SQLObjectAccess
public interface ClassAccessIFINTERNAL: Interface for accessing class instances in the database. This include loading, creating, and deleting objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.booleanload(AccessRegistrarIF registrar, IdentityIF identity)INTERNAL: Loads the object identity from the database.ObjectloadField(AccessRegistrarIF registrar, IdentityIF identity, int field)INTERNAL: Loads the specified object field for the given identity from the database.ObjectloadFieldMultiple(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.
-
-
-
Method Detail
-
load
boolean load(AccessRegistrarIF registrar, IdentityIF identity) throws Exception
INTERNAL: Loads the object identity from the database.- Returns:
- true if object was found in the data store, false otherwise.
- Throws:
Exception
-
loadField
Object loadField(AccessRegistrarIF registrar, IdentityIF identity, int field) throws Exception
INTERNAL: Loads the specified object field for the given identity from the database.- Throws:
Exception
-
loadFieldMultiple
Object loadFieldMultiple(AccessRegistrarIF registrar, Collection<IdentityIF> identities, IdentityIF current, int field) throws Exception
INTERNAL: Loads the specified object field for the given identitys from the database.- Throws:
Exception
-
create
void create(ObjectAccessIF oaccess, Object object) throws Exception
INTERNAL: Creates the new object in the database. Note that the object identity can be extracted from the object using the supplied object access instance.- Throws:
Exception
-
delete
void delete(ObjectAccessIF oaccess, Object object) throws Exception
INTERNAL: Deletes the object identity from the database.- Throws:
Exception
-
storeDirty
void storeDirty(ObjectAccessIF oaccess, Object object) throws Exception
INTERNAL: 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.- Throws:
Exception
-
-