tiger
Class LocalObjectBase

java.lang.Object
  |
  +--tiger.LocalObjectBase
All Implemented Interfaces:
ObjectBase

public class LocalObjectBase
extends java.lang.Object
implements ObjectBase

Local ObjectBase. Used for local access to the object base.

Author:
Fredrik Bertilsson

Constructor Summary
LocalObjectBase()
           
LocalObjectBase(java.lang.String aFilename)
           
 
Method Summary
 void bind(RelationMetaData aRelation, ID anID1, ID anID2)
          Binds two objects together.
 void close()
          Closes this broker.
 void commit()
           
 PersistObject createObject(ID anID)
          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 anStartID, ID anStopID)
          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.
 void flushProperties()
           
 PersistBroker getBroker()
           
 MetaDataManager getMetaData()
           
 java.lang.String getPath()
           
 java.util.Properties getProperties()
           
 TransactionManager getTransactionManager()
           
 java.lang.Object invoke(java.lang.String aClassname, java.lang.String aFunctionname, java.lang.Class[] aParamTypes, java.lang.Object[] aParamList)
           
 void save(PersistObject anObj)
          Saves the given persistent object.
 void unbind(RelationMetaData aRelation, ID anID1, ID anID2)
          Unbinds two objects together.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalObjectBase

public LocalObjectBase()

LocalObjectBase

public LocalObjectBase(java.lang.String aFilename)
Method Detail

findObject

public PersistObject findObject(ID anID)
Description copied from interface: ObjectBase
Returns the persistent object that have the specified id.

Specified by:
findObject in interface ObjectBase

findObjects

public ObjectSet findObjects(ID anStartID,
                             ID anStopID)
Description copied from interface: ObjectBase
Returns the persistent objects that have a id between the specified start and stop id.

Specified by:
findObjects in interface ObjectBase

createObject

public PersistObject createObject(ID anID)
Description copied from interface: ObjectBase
Creates a persistent object with the given id.

Specified by:
createObject in interface ObjectBase

save

public void save(PersistObject anObj)
Description copied from interface: ObjectBase
Saves the given persistent object.

Specified by:
save in interface ObjectBase

findParent

public PersistObject findParent(PersistObject anObj,
                                java.lang.String anAggregatename)
Description copied from interface: ObjectBase
Returns the parent, given by the aggregatename, of the given object.

Specified by:
findParent in interface ObjectBase

findChildren

public ObjectSet findChildren(PersistObject anObj,
                              java.lang.String anAggregatename)
Description copied from interface: ObjectBase
Returns the childs, given by the aggregatename, to the given object.

Specified by:
findChildren in interface ObjectBase

findRelatedObject

public PersistObject findRelatedObject(ID anID,
                                       java.lang.String aRelationname)
Description copied from interface: ObjectBase
Returns the related object, given the relationname, to the object the the given id.

Specified by:
findRelatedObject in interface ObjectBase

findRelatedObjects

public ObjectSet findRelatedObjects(ID anID,
                                    java.lang.String aRelationname)
Description copied from interface: ObjectBase
Returns the related objects, given the relationname, to the object the the given id.

Specified by:
findRelatedObjects in interface ObjectBase

findByIndex

public ObjectSet findByIndex(java.lang.String aClassname,
                             java.lang.String aIndexName,
                             java.lang.Comparable aFromKey,
                             java.lang.Comparable aToKey)
Description copied from interface: ObjectBase
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.

Specified by:
findByIndex in interface ObjectBase

findByUniqueIndex

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

Specified by:
findByUniqueIndex in interface ObjectBase

findAll

public ObjectSet findAll(java.lang.String aClassname)
Description copied from interface: ObjectBase
Returns all objects for the given class.

Specified by:
findAll in interface ObjectBase

bind

public void bind(RelationMetaData aRelation,
                 ID anID1,
                 ID anID2)
Description copied from interface: ObjectBase
Binds two objects together.

Specified by:
bind in interface ObjectBase

unbind

public void unbind(RelationMetaData aRelation,
                   ID anID1,
                   ID anID2)
Description copied from interface: ObjectBase
Unbinds two objects together.

Specified by:
unbind in interface ObjectBase

deleteObject

public void deleteObject(ID anID)
Description copied from interface: ObjectBase
Deletes the object given by the id.

Specified by:
deleteObject in interface ObjectBase

close

public void close()
Description copied from interface: ObjectBase
Closes this broker.

Specified by:
close in interface ObjectBase

commit

public void commit()
Specified by:
commit in interface ObjectBase

getMetaData

public MetaDataManager getMetaData()
Specified by:
getMetaData in interface ObjectBase

getBroker

public PersistBroker getBroker()

getTransactionManager

public TransactionManager getTransactionManager()

invoke

public java.lang.Object invoke(java.lang.String aClassname,
                               java.lang.String aFunctionname,
                               java.lang.Class[] aParamTypes,
                               java.lang.Object[] aParamList)
Specified by:
invoke in interface ObjectBase

getProperties

public java.util.Properties getProperties()

flushProperties

public void flushProperties()

getPath

public java.lang.String getPath()