tiger
Interface ObjectBase

All Known Implementing Classes:
LocalObjectBase, RemoteObjectBase

public interface ObjectBase

Manager for the object base. Acts as a generic PersistBroker.

Author:
Fredrik Bertilsson

Method Summary
 void bind(RelationMetaData aRelation, ID anID1, ID anID2)
          Binds two objects together.
 void close()
          Closes this broker.
 void commit()
           
 PersistObject createObject(ID id)
          Creates a persistent object with the given id.
 void deleteObject(ID anID)
          Deletes the object given by the id.
 ObjectSet findAll(java.lang.String aClassname)
          Returns all objects for the given class.
 ObjectSet findByIndex(java.lang.String aClassname, java.lang.String aIndexName, java.lang.Comparable aFromKey, java.lang.Comparable aToKey)
          Returns the objects that have index values between given start and stop value.
 PersistObject findByUniqueIndex(java.lang.String aClassname, java.lang.String aIndexName, java.lang.Comparable aKey)
          Returns the object given by a index value for a unique index.
 ObjectSet findChildren(PersistObject anObj, java.lang.String anAggregatename)
          Returns the childs, given by the aggregatename, to the given object.
 PersistObject findObject(ID anID)
          Returns the persistent object that have the specified id.
 ObjectSet findObjects(ID aStartID, ID aStopID)
          Returns the persistent objects that have a id between the specified start and stop id.
 PersistObject findParent(PersistObject anObj, java.lang.String anAggregatename)
          Returns the parent, given by the aggregatename, of the given object.
 PersistObject findRelatedObject(ID anID, java.lang.String aRelationname)
          Returns the related object, given the relationname, to the object the the given id.
 ObjectSet findRelatedObjects(ID anID, java.lang.String aRelationname)
          Returns the related objects, given the relationname, to the object the the given id.
 MetaDataManager getMetaData()
           
 java.lang.Object invoke(java.lang.String aClassname, java.lang.String aFunctionname, java.lang.Class[] aParamTypes, java.lang.Object[] aParamList)
           
 void save(PersistObject obj)
          Saves the given persistent object.
 void unbind(RelationMetaData aRelation, ID anID1, ID anID2)
          Unbinds two objects together.
 

Method Detail

findObject

public PersistObject findObject(ID anID)
Returns the persistent object that have the specified id.


findObjects

public ObjectSet findObjects(ID aStartID,
                             ID aStopID)
Returns the persistent objects that have a id between the specified start and stop id.


createObject

public PersistObject createObject(ID id)
Creates a persistent object with the given id.


save

public void save(PersistObject obj)
Saves the given persistent object.


findParent

public PersistObject findParent(PersistObject anObj,
                                java.lang.String anAggregatename)
Returns the parent, given by the aggregatename, of the given object.


findChildren

public ObjectSet findChildren(PersistObject anObj,
                              java.lang.String anAggregatename)
Returns the childs, given by the aggregatename, to the given object.


findRelatedObject

public PersistObject findRelatedObject(ID anID,
                                       java.lang.String aRelationname)
Returns the related object, given the relationname, to the object the the given id.


findRelatedObjects

public ObjectSet findRelatedObjects(ID anID,
                                    java.lang.String aRelationname)
Returns the related objects, given the relationname, to the object the the given id.


findByIndex

public ObjectSet findByIndex(java.lang.String aClassname,
                             java.lang.String aIndexName,
                             java.lang.Comparable aFromKey,
                             java.lang.Comparable aToKey)
Returns the objects that have index values between given start and stop value. The flag tells if the interval should be considered as open or closed.


findByUniqueIndex

public PersistObject findByUniqueIndex(java.lang.String aClassname,
                                       java.lang.String aIndexName,
                                       java.lang.Comparable aKey)
Returns the object given by a index value for a unique index.


findAll

public ObjectSet findAll(java.lang.String aClassname)
Returns all objects for the given class.


bind

public void bind(RelationMetaData aRelation,
                 ID anID1,
                 ID anID2)
Binds two objects together.


unbind

public void unbind(RelationMetaData aRelation,
                   ID anID1,
                   ID anID2)
Unbinds two objects together.


deleteObject

public void deleteObject(ID anID)
Deletes the object given by the id.


close

public void close()
Closes this broker.


commit

public void commit()

getMetaData

public MetaDataManager getMetaData()

invoke

public java.lang.Object invoke(java.lang.String aClassname,
                               java.lang.String aFunctionname,
                               java.lang.Class[] aParamTypes,
                               java.lang.Object[] aParamList)