Package net.ontopia.persistence.proxy
Interface ClassAccessIF
- All Known Implementing Classes:
SQLBatchObjectAccess,SQLCollectionAccess,SQLObjectAccess
public interface ClassAccessIF
INTERNAL: Interface for accessing class instances in the
database. This include loading, creating, and deleting objects.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(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.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.
-
Method Details
-
load
INTERNAL: Loads the object identity from the database.- Returns:
- true if object was found in the data store, false otherwise.
- Throws:
Exception
-
loadField
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
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
INTERNAL: Deletes the object identity from the database.- Throws:
Exception
-
storeDirty
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
-