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 theReflectiveNeo4JNodeRepositoryImpl
It contains specific information on fields in a node- Since:
- 1.0
- Author:
- Oliver Krauss
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldConverter
converter
protected Field
field
The field itselfprotected Class
fieldClass
Type that is stored in this fieldprotected Method
getter
Getter for fieldprotected org.slf4j.Logger
logger
protected boolean
map
If the field is a map typeprotected String
name
Name of fieldprotected Method
setter
Setter for field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(Object object)
Returns the field value as database value!Field
getField()
String
getName()
boolean
isMap()
void
prepareForDb(Object object, Map<String,Object> map)
Returns the field value as database value!void
set(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()
-
-