public class FieldInfo extends Object
| Type | Property and Description |
|---|---|
boolean |
persistableAs |
| Constructor and Description |
|---|
FieldInfo(String name,
String descriptor,
String typeParameterDescriptor,
ObjectAnnotations annotations)
Constructs a new
FieldInfo based on the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
convertedType() |
ObjectAnnotations |
getAnnotations() |
String |
getCollectionClassname()
Get the collection class name for the field
|
CompositeAttributeConverter |
getCompositeConverter() |
String |
getName() |
AttributeConverter |
getPropertyConverter() |
String |
getTypeDescriptor()
Get the type descriptor
|
boolean |
hasAnnotation(String annotationName) |
boolean |
hasCompositeConverter() |
boolean |
hasPropertyConverter() |
boolean |
isArray() |
boolean |
isArrayOf(Class<?> type) |
boolean |
isConstraint() |
boolean |
isIterable() |
boolean |
isLabelField() |
boolean |
isParameterisedTypeOf(Class<?> type) |
boolean |
isScalar() |
boolean |
isTypeOf(Class<?> type) |
boolean |
persistableAsProperty() |
String |
property() |
String |
relationship() |
String |
relationshipDirection(String defaultDirection) |
String |
relationshipTypeAnnotation() |
void |
setCompositeConverter(CompositeAttributeConverter<?> converter) |
public FieldInfo(String name, String descriptor, String typeParameterDescriptor, ObjectAnnotations annotations)
FieldInfo based on the given arguments.name - The name of the fielddescriptor - The field descriptor that expresses the type of the field using Java signature string notationtypeParameterDescriptor - 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 String getTypeDescriptor()
public Class<?> convertedType()
public boolean isConstraint()
true is this field is a constraint rather than just a plain index.Copyright © 2016 Neo Technology, Inc.. All rights reserved.