public class EntityAccessManager extends Object
ClassInfo in the following order.
| Constructor and Description |
|---|
EntityAccessManager() |
| Modifier and Type | Method and Description |
|---|---|
static FieldInfo |
getIterableField(ClassInfo classInfo,
Class<?> parameterType,
String relationshipType,
String relationshipDirection)
Returns an FieldWriter for an iterable of a non-primitive scalar type defined by a ClassInfo
|
static FieldInfo |
getRelationalReader(ClassInfo classInfo,
String relationshipType,
String relationshipDirection)
Returns a FieldInfo for a scalar type definition on a ClassInfo that is not a primitive graph property
|
static FieldInfo |
getRelationalWriter(ClassInfo classInfo,
String relationshipType,
String relationshipDirection,
Class<?> objectType)
Returns a FieldWriter for a scalar type on a ClassInfo that is not a primitive graph property
|
static FieldInfo |
getRelationalWriter(ClassInfo classInfo,
String relationshipType,
String relationshipDirection,
Object scalarValue)
Returns a FieldWriter for a scalar value represented as a relationship in the graph (i.e.
|
static Object |
merge(Class<?> collectionType,
Object newValues,
Collection currentValues,
Class elementType)
Merges the contents of collection with hydrated ensuring no duplicates and returns the result as an
instance of the given parameter type.
|
static Object |
merge(Class<?> parameterType,
Object newValues,
Object[] currentValues,
Class elementType) |
public static Object merge(Class<?> parameterType, Object newValues, Object[] currentValues, Class elementType)
public static Object merge(Class<?> collectionType, Object newValues, Collection currentValues, Class elementType)
collectionType - The type of Iterable or array to returnnewValues - The objects to merge into a collection of the given parameter type, which may not necessarily be of a
type assignable from collectionType alreadycurrentValues - The Iterable to merge into, which may be null if a new collection needs creatingelementType - The type of the element in the array or collection (After conversion has been applied)public static FieldInfo getRelationalWriter(ClassInfo classInfo, String relationshipType, String relationshipDirection, Object scalarValue)
classInfo - the ClassInfo (or a superclass thereof) declaring the relationshiprelationshipType - the name of the relationship as it is in the graphrelationshipDirection - the direction of the relationship as it is in the graphscalarValue - an Object whose class the relationship is defined forpublic static FieldInfo getRelationalWriter(ClassInfo classInfo, String relationshipType, String relationshipDirection, Class<?> objectType)
classInfo - the ClassInfo (or a superclass thereof) declaring the relationshiprelationshipType - the name of the relationship as it is in the graphrelationshipDirection - the direction of the relationship as it is in the graphobjectType - the class the relationship is defined forpublic static FieldInfo getRelationalReader(ClassInfo classInfo, String relationshipType, String relationshipDirection)
classInfo - A ClassInfo declaring the type definitionrelationshipType - The name of the relationship in the graphrelationshipDirection - The direction of the relationship in the graphpublic static FieldInfo getIterableField(ClassInfo classInfo, Class<?> parameterType, String relationshipType, String relationshipDirection)
classInfo - the ClassInfo (or a superclass thereof) declaring the iterable relationshiprelationshipType - the name of the relationship as it is in the graphrelationshipDirection - the direction of the relationship as it is in the graphparameterType - the type that will be iterated overCopyright © 2015–2020 Neo Technology, Inc.. All rights reserved.