Package science.aist.neo4j.reflective
Class FieldInformation
- java.lang.Object
-
- science.aist.neo4j.reflective.FieldInformation
-
- Direct Known Subclasses:
RelationshipInformation
public class FieldInformation extends Object
RelationshipInformation handles the metadata for theReflectiveNeo4JNodeRepositoryImplIt contains specific information on fields in a node- Since:
- 1.0
- Author:
- Oliver Krauss
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldConverterconverterprotected FieldfieldThe field itselfprotected ClassfieldClassType that is stored in this fieldprotected MethodgetterGetter for fieldprotected org.slf4j.Loggerloggerprotected booleanmapIf the field is a map typeprotected StringnameName of fieldprotected MethodsetterSetter for field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object object)Returns the field value as database value!FieldgetField()StringgetName()booleanisMap()voidprepareForDb(Object object, Map<String,Object> map)Returns the field value as database value!voidset(Object object, Object value)Sets the field to a given value in an object.
-
-
-
Field Detail
-
logger
protected org.slf4j.Logger logger
-
name
protected String name
Name of field
-
field
protected Field field
The field itself
-
getter
protected Method getter
Getter for field
-
setter
protected Method setter
Setter for field
-
map
protected boolean map
If the field is a map type
-
converter
protected FieldConverter converter
-
fieldClass
protected Class fieldClass
Type that is stored in this field
-
-
Method Detail
-
getName
public String getName()
-
get
public Object get(Object object)
Returns the field value as database value!- Parameters:
object- to be returned from- Returns:
- value the field has as is (can be null)
-
prepareForDb
public void prepareForDb(Object object, Map<String,Object> map)
Returns the field value as database value!- Parameters:
object- to be returned frommap- that will be stored in DB
-
set
public void set(Object object, Object value)
Sets the field to a given value in an object.- Parameters:
object- whose field should be setvalue- that the field should be set to -> is a database Value!
-
isMap
public boolean isMap()
-
getField
public Field getField()
-
-