|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.type.DefaultJavaTypeMapper
public class DefaultJavaTypeMapper
| Constructor Summary | |
|---|---|
DefaultJavaTypeMapper()
|
|
| Method Summary | |
|---|---|
HGAtomType |
defineHGType(java.lang.Class<?> javaClass,
HGHandle typeHandle)
Create a new HyperGraphDB type for the given Java class. |
HGAtomType |
getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
java.lang.Class<?> javaClass)
Create a type wrapper for a given raw HyperGraphDB type. |
void |
setHyperGraph(HyperGraph graph)
During load time, set the HyperGraph
instance to which this atom belongs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJavaTypeMapper()
| Method Detail |
|---|
public HGAtomType defineHGType(java.lang.Class<?> javaClass,
HGHandle typeHandle)
JavaTypeMapper
Create a new HyperGraphDB type for the given Java class. The HGHandle
of the type pre-created and provided as a parameter.
This method should return a brand new HGAtomType that will subsequently
be saved as a type atom with handle typeHandle and associated with
the javaClass class.
defineHGType in interface JavaTypeMapper
public HGAtomType getJavaBinding(HGHandle typeHandle,
HGAtomType hgType,
java.lang.Class<?> javaClass)
JavaTypeMapperCreate a type wrapper for a given raw HyperGraphDB type. The type wrapper should work with the regular Java runtime instance of an atom and use the underlying HG type for actual storage and retrieval.
getJavaBinding in interface JavaTypeMapperpublic void setHyperGraph(HyperGraph graph)
HGGraphHolderDuring load time, set the HyperGraph
instance to which this atom belongs.
setHyperGraph in interface HGGraphHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||