public class VertexEntityDelegates extends Object
VertexEntityTransformation
delegates to for some
calls.Modifier and Type | Field and Description |
---|---|
static String |
METHOD_FIND_ALL
Name of findAll delegate method.
|
static String |
METHOD_FIND_BY
Name of findBy delegate method.
|
static String |
METHOD_GET_BY
Name of findBy delegate method returning a single result.
|
static String |
METHOD_REGISTER_CLASS
Name of registerClass delegate method.
|
Constructor and Description |
---|
VertexEntityDelegates() |
Modifier and Type | Method and Description |
---|---|
static Iterable<com.tinkerpop.blueprints.Vertex> |
findAllDelegate(com.tinkerpop.blueprints.Graph graph,
String className,
String typeProperty)
Find all vertices of a specific class.
|
static Iterable<com.tinkerpop.blueprints.Vertex> |
findByDelegate(com.tinkerpop.blueprints.Graph graph,
String className,
String typeProperty,
String propertyName,
Object value)
Find vertices of a specific class with a specific value for a given
attribute.
|
static com.tinkerpop.blueprints.Vertex |
getByDelegate(com.tinkerpop.blueprints.Graph graph,
String className,
String typeProperty,
String propertyName,
Object value)
Find a vertex of a specific class with a specific value for a given
attribute.
|
static void |
registerClass(com.tinkerpop.blueprints.Graph graph,
String className,
String superClassName)
Registers an entity class in the schema of a graph, if applicable.
|
public static final String METHOD_FIND_ALL
public static final String METHOD_FIND_BY
public static final String METHOD_GET_BY
public static final String METHOD_REGISTER_CLASS
public static Iterable<com.tinkerpop.blueprints.Vertex> findAllDelegate(com.tinkerpop.blueprints.Graph graph, String className, String typeProperty)
graph
- the graph to searchclassName
- the entity nametypeProperty
- the name of the property holding the entity class
informationpublic static Iterable<com.tinkerpop.blueprints.Vertex> findByDelegate(com.tinkerpop.blueprints.Graph graph, String className, String typeProperty, String propertyName, Object value)
graph
- the graph to searchclassName
- the entity nametypeProperty
- the name of the property holding the entity class
informationpropertyName
- the name of the property to check for the given valuevalue
- the value that vertices should have for the given propertypublic static com.tinkerpop.blueprints.Vertex getByDelegate(com.tinkerpop.blueprints.Graph graph, String className, String typeProperty, String propertyName, Object value) throws NonUniqueResultException
graph
- the graph to searchclassName
- the entity nametypeProperty
- the name of the property holding the entity class
informationpropertyName
- the name of the property to check for the given valuevalue
- the value that vertices should have for the given propertynull
if it does not existNonUniqueResultException
- if there are multiple vertices matching
the criteriapublic static void registerClass(com.tinkerpop.blueprints.Graph graph, String className, String superClassName)
graph
- the graphclassName
- the entity class namesuperClassName
- the super entity class name or null
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a