public class SimplePojoFactory extends Object implements PojoFactory
| Constructor and Description |
|---|
SimplePojoFactory() |
SimplePojoFactory(PojoContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Vertex v,
Class<T> type)
Create a POJO of a given type from data contained in a given vertex.
|
void |
createAll(Graph graph)
Map individuals from a graph into Java objects.
|
PojoContext |
getContext() |
public SimplePojoFactory()
public SimplePojoFactory(PojoContext context)
public PojoContext getContext()
public <T> T create(Vertex v, Class<T> type) throws KonigException
PojoFactorycreate in interface PojoFactoryv - The vertex containing data for the POJOtype - The Java Class of the POJO to be created.KonigExceptionpublic void createAll(Graph graph) throws KonigException
PojoFactorycreateAll in interface PojoFactorygraph - The graph containing individuals that are to be mapped into Java objects.KonigExceptionCopyright © 2019. All rights reserved.