class FieldInfo extends java.lang.Object implements RawField, java.io.Serializable, java.lang.Comparable<FieldInfo>
Note that the equals(), compareTo() and hashCode() methods only use the name field in this class. Comparing two FieldInfo objects is only done when both are declared in the same class, so comparing the field name is sufficient.
Modifier and Type | Method and Description |
---|---|
(package private) void |
collectRelatedFormats(Catalog catalog,
java.util.Map<java.lang.String,Format> newFormats) |
int |
compareTo(FieldInfo o) |
boolean |
equals(java.lang.Object other) |
(package private) java.lang.String |
getClassName() |
(package private) static FieldInfo |
getField(java.util.List<FieldInfo> fields,
java.lang.String fieldName) |
(package private) java.lang.Class |
getFieldClass(Catalog catalog) |
(package private) static int |
getFieldIndex(java.util.List<FieldInfo> fields,
java.lang.String fieldName) |
(package private) static java.util.List<FieldInfo> |
getInstanceFields(java.lang.Class cls,
ClassMetadata clsMeta)
Returns a list of all non-transient non-static fields that are declared
in the given class.
|
java.lang.String |
getName()
Returns the name of the field.
|
Format |
getType()
Returns the type of the field, without expanding parameterized types,
or null if the type is an interface type or the Object class.
|
int |
hashCode() |
(package private) void |
initialize(Catalog catalog,
EntityModel model,
int initVersion) |
(package private) void |
migrateFromBeta(java.util.Map<java.lang.String,Format> formatMap) |
java.lang.String |
toString() |
static java.util.List<FieldInfo> getInstanceFields(java.lang.Class cls, ClassMetadata clsMeta)
static int getFieldIndex(java.util.List<FieldInfo> fields, java.lang.String fieldName)
void collectRelatedFormats(Catalog catalog, java.util.Map<java.lang.String,Format> newFormats)
void migrateFromBeta(java.util.Map<java.lang.String,Format> formatMap)
void initialize(Catalog catalog, EntityModel model, int initVersion)
java.lang.Class getFieldClass(Catalog catalog)
java.lang.String getClassName()
public java.lang.String getName()
RawField
public Format getType()
RawField
public int compareTo(FieldInfo o)
compareTo
in interface java.lang.Comparable<FieldInfo>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2012 Oracle. All rights reserved.