|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.type.JavaObjectMapper
public class JavaObjectMapper
| Constructor Summary | |
|---|---|
JavaObjectMapper()
|
|
| Method Summary | |
|---|---|
void |
addClass(java.lang.Class<?> c)
|
void |
addClass(java.lang.String classname)
|
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. |
HGHandle |
getSuperSlot()
|
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 JavaObjectMapper()
| Method Detail |
|---|
public HGHandle getSuperSlot()
public void setHyperGraph(HyperGraph graph)
HGGraphHolderDuring load time, set the HyperGraph
instance to which this atom belongs.
setHyperGraph in interface HGGraphHolder
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 addClass(java.lang.Class<?> c)
public void addClass(java.lang.String classname)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||