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

Method Detail

load

boolean load(AccessRegistrarIF registrar,
             IdentityIF identity)
             throws java.lang.Exception
INTERNAL: Loads the object identity from the database.

Returns:
true if object was found in the data store, false otherwise.
Throws:
java.lang.Exception

loadField

java.lang.Object loadField(AccessRegistrarIF registrar,
                           IdentityIF identity,
                           int field)
                           throws java.lang.Exception
INTERNAL: Loads the specified object field for the given identity from the database.

Throws:
java.lang.Exception

loadFieldMultiple

java.lang.Object loadFieldMultiple(AccessRegistrarIF registrar,
                                   java.util.Collection identities,
                                   IdentityIF current,
                                   int field)
                                   throws java.lang.Exception
INTERNAL: Loads the specified object field for the given identitys from the database.

Throws:
java.lang.Exception

create

void create(ObjectAccessIF oaccess,
            java.lang.Object object)
            throws java.lang.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:
java.lang.Exception

delete

void delete(ObjectAccessIF oaccess,
            java.lang.Object object)
            throws java.lang.Exception
INTERNAL: Deletes the object identity from the database.

Throws:
java.lang.Exception

storeDirty

void storeDirty(ObjectAccessIF oaccess,
                java.lang.Object object)
                throws java.lang.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:
java.lang.Exception


Copyright © 2000-2012 Ontopia.