Package science.aist.neo4j.reflective
Class RelationshipInformation
- java.lang.Object
-
- science.aist.neo4j.reflective.FieldInformation
-
- science.aist.neo4j.reflective.RelationshipInformation
-
- Direct Known Subclasses:
KeyRelationshipInformation
public class RelationshipInformation extends FieldInformation
RelationshipInformation handles the metadata for theReflectiveNeo4JNodeRepositoryImplIt contains specific information on relationships between science.neo4j.nodes- Since:
- 1.0
- Author:
- Oliver Krauss
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationshipInformation.DirectionThe direction of the relationship.
-
Field Summary
Fields Modifier and Type Field Description protected booleanbulkTrue = 0..* False = 0..1 If it is a Collection is a bulk relationship!protected RelationshipInformation.Directiondirectionthe direction of the relationship // TODO #9 and #10 USE THISprotected ClassInformationtargetClassInformationprotected StringtypeThe name of the relationship for the database-
Fields inherited from class science.aist.neo4j.reflective.FieldInformation
converter, field, fieldClass, getter, logger, map, name, setter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationshipInformation(String name, Field field, Method getter, Method setter, Class genericClass, String type, String direction)RelationshipInformation(String name, Field field, Method getter, Method setter, Class genericClass, String type, String direction, Type genericType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationshipInformation.DirectiongetDirection()ClassInformationgetTargetClassInformation()ClassInformationgetTargetClassInformation(Object o)For runtime decision making -> hand it an object, and the system will get the class info from itStringgetType()booleanisBulk()protected voidsetTargetClassInformation(ClassInformation targetClassInformation)-
Methods inherited from class science.aist.neo4j.reflective.FieldInformation
get, getField, getName, isMap, prepareForDb, set
-
-
-
-
Field Detail
-
type
protected String type
The name of the relationship for the database
-
direction
protected RelationshipInformation.Direction direction
the direction of the relationship // TODO #9 and #10 USE THIS
-
bulk
protected boolean bulk
True = 0..* False = 0..1 If it is a Collection is a bulk relationship!
-
targetClassInformation
protected ClassInformation targetClassInformation
-
-
Constructor Detail
-
RelationshipInformation
protected RelationshipInformation(String name, Field field, Method getter, Method setter, Class genericClass, String type, String direction)
-
RelationshipInformation
public RelationshipInformation(String name, Field field, Method getter, Method setter, Class genericClass, String type, String direction, Type genericType) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-
Method Detail
-
getType
public String getType()
-
getDirection
public RelationshipInformation.Direction getDirection()
-
isBulk
public boolean isBulk()
-
getTargetClassInformation
public ClassInformation getTargetClassInformation()
-
getTargetClassInformation
public ClassInformation getTargetClassInformation(Object o)
For runtime decision making -> hand it an object, and the system will get the class info from it- Parameters:
o- the object for which the class information should be constructed- Returns:
- the class information for the class of object o
-
setTargetClassInformation
protected void setTargetClassInformation(ClassInformation targetClassInformation)
-
-