org.hypergraphdb
Interface HGGraphHolder

All Known Subinterfaces:
HGAtomType, HGCompositeType, HGPrimitiveType<JavaType>, JavaTypeMapper
All Known Implementing Classes:
AbstractTypeConstructor, ArrayType, ArrayTypeConstructor, AtomQueueType, AtomRefType, AtomSetType, AtomStackType, BooleanPrimitiveArrayType, BooleanType, BytePrimitiveArrayType, ByteType, CharPrimitiveArrayType, CharType, CollectionType, CollectionTypeConstructor, DefaultJavaTypeMapper, DoublePrimitiveArrayType, DoubleType, EnumType, EnumTypeConstructor, FloatPrimitiveArrayType, FloatType, HGAbstractCompositeType, HGAbstractType, HGAtomTypeBase, HGHandleType, HGRelType, HGRelTypeConstructor, IntPrimitiveArrayType, IntType, JavaAbstractBinding, JavaBeanBinding, JavaInterfaceBinding, JavaObjectBinding, JavaObjectMapper, JavaTypeFactory, LinkType, LongPrimitiveArrayType, LongType, MapType, MapTypeConstructor, NullType, NumericTypeBase, PlainLinkType, PrimitiveArrayType, PrimitiveTypeBase, RecordType, RecordTypeConstructor, SerializableType, ShortPrimitiveArrayType, ShortType, SlotType, StringType, SubsumesType, TextType, Top

public interface HGGraphHolder

The interface is for atoms that need to hold a reference to the HyperGraph to which they belong. If an object implements this interface, its setHyperGraph method will be called every time it is read from permanent storage.

Author:
Borislav Iordanov

Method Summary
 void setHyperGraph(HyperGraph graph)
          During load time, set the HyperGraph instance to which this atom belongs.
 

Method Detail

setHyperGraph

void setHyperGraph(HyperGraph graph)

During load time, set the HyperGraph instance to which this atom belongs.

Parameters:
hg - The HyperGraph that just loaded the atom.