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
 void create(ObjectAccessIF oaccess, Object object)
          INTERNAL: Creates the new object in the database.
 void delete(ObjectAccessIF oaccess, Object object)
          INTERNAL: Deletes the object identity from the database.
 boolean load(AccessRegistrarIF registrar, IdentityIF identity)
          INTERNAL: Loads the object identity from the database.
 Object loadField(AccessRegistrarIF registrar, IdentityIF identity, int field)
          INTERNAL: Loads the specified object field for the given identity from the database.
 Object loadFieldMultiple(AccessRegistrarIF registrar, Collection identities, IdentityIF current, int field)
          INTERNAL: Loads the specified object field for the given identitys from the database.
 void storeDirty(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 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


Copyright © 2000-2012 Ontopia.