Package science.aist.neo4j.reflective
Class KeyRelationshipInformation
- java.lang.Object
-
- science.aist.neo4j.reflective.FieldInformation
-
- science.aist.neo4j.reflective.RelationshipInformation
-
- science.aist.neo4j.reflective.KeyRelationshipInformation
-
- Direct Known Subclasses:
ArrayRelationshipInformation,MapRelationshipInformation
public abstract class KeyRelationshipInformation extends RelationshipInformation
Handles the metadata for theReflectiveNeo4JNodeRepositoryImplIt contains information on a Map relationshipMap<Key, NODE>where the Key will be moved into aMapRelationship.- Since:
- 1.0
- Author:
- Oliver Krauss
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class science.aist.neo4j.reflective.RelationshipInformation
RelationshipInformation.Direction
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassendNodeClassClass of the end nodeprotected booleaninvertedprotected ClasskeyClassClass of the key in the mapprotected static List<TransactionManager>managersTransaction manager to be assigned to the auto-generated relationship repositoryprotected FieldrelationshipSyncFieldField in StartNode that lets us sync relationship ids to keysprotected ClassstartNodeClassClass of the start node (also the one containing the map)-
Fields inherited from class science.aist.neo4j.reflective.RelationshipInformation
bulk, direction, targetClassInformation, type
-
Fields inherited from class science.aist.neo4j.reflective.FieldInformation
converter, field, fieldClass, getter, logger, map, name, setter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddManager(TransactionManager manager)Note: this OR the setManagers is required!protected HashMap<Object,Long>getSync(Object object)voidset(Object object, Object value)Sets the field to a given value in an object.static voidsetManagers(List<TransactionManager> managers)Note: this OR the addManager is required!-
Methods inherited from class science.aist.neo4j.reflective.RelationshipInformation
getDirection, getTargetClassInformation, getTargetClassInformation, getType, isBulk, setTargetClassInformation
-
Methods inherited from class science.aist.neo4j.reflective.FieldInformation
get, getField, getName, isMap, prepareForDb
-
-
-
-
Field Detail
-
startNodeClass
protected Class startNodeClass
Class of the start node (also the one containing the map)
-
endNodeClass
protected Class endNodeClass
Class of the end node
-
keyClass
protected Class keyClass
Class of the key in the map
-
relationshipSyncField
protected Field relationshipSyncField
Field in StartNode that lets us sync relationship ids to keys
-
managers
protected static List<TransactionManager> managers
Transaction manager to be assigned to the auto-generated relationship repository
-
inverted
protected boolean inverted
-
-
Method Detail
-
set
public void set(Object object, Object value)
Description copied from class:FieldInformationSets the field to a given value in an object.- Overrides:
setin classFieldInformation- Parameters:
object- whose field should be setvalue- that the field should be set to -> is a database Value!
-
setManagers
public static void setManagers(List<TransactionManager> managers)
Note: this OR the addManager is required!- Parameters:
managers- sets transaction managers to be used
-
addManager
public static void addManager(TransactionManager manager)
Note: this OR the setManagers is required!- Parameters:
manager- used to handle transactions
-
-