public class FieldInfo extends Object
| Type | Property and Description |
|---|---|
boolean |
persistableAs |
| Constructor and Description |
|---|
FieldInfo(ClassInfo classInfo,
Field field,
String typeParameterDescriptor,
ObjectAnnotations annotations)
Constructs a new
FieldInfo based on the given arguments. |
public FieldInfo(ClassInfo classInfo, Field field, String typeParameterDescriptor, ObjectAnnotations annotations)
FieldInfo based on the given arguments.typeParameterDescriptor - The descriptor that expresses the generic type parameter, which may be null
if that's not appropriateannotations - The ObjectAnnotations applied to the fieldpublic String getName()
public String property()
public String relationship()
public String relationshipTypeAnnotation()
public ObjectAnnotations getAnnotations()
public boolean persistableAsProperty()
public AttributeConverter getPropertyConverter()
public boolean hasPropertyConverter()
public CompositeAttributeConverter getCompositeConverter()
public void setCompositeConverter(CompositeAttributeConverter<?> converter)
public boolean hasCompositeConverter()
public boolean isTypeOf(Class<?> type)
public boolean isIterable()
public boolean isParameterisedTypeOf(Class<?> type)
public boolean isArrayOf(Class<?> type)
public String getCollectionClassname()
public boolean isScalar()
public boolean isLabelField()
public boolean isArray()
public boolean hasAnnotation(String annotationName)
public boolean hasAnnotation(Class<?> annotationNameClass)
public String getTypeDescriptor()
public Class<?> convertedType()
public boolean isConstraint()
true is this field is a constraint rather than just a plain index.public void writeDirect(Object instance, Object value)
instance - class instancevalue - field value to be writtenpublic Class<?> type()
public String relationshipName()
public boolean forScalar()
public String typeParameterDescriptor()
public String relationshipType()
public String propertyName()
public boolean isComposite()
public String relationshipDirection()
public String typeDescriptor()
public Field getField()
public ClassInfo containingClassInfo()
Copyright © 2018 Neo Technology, Inc.. All rights reserved.