|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.impl.FieldInfo
class FieldInfo
A field definition used by ComplexFormat and CompositeKeyFormat.
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.
Method Summary | |
---|---|
(package private) void |
collectRelatedFormats(Catalog catalog,
Map<String,Format> newFormats)
|
int |
compareTo(FieldInfo o)
|
boolean |
equals(Object other)
|
(package private) String |
getClassName()
|
(package private) static FieldInfo |
getField(List<FieldInfo> fields,
String fieldName)
|
(package private) Class |
getFieldClass()
|
(package private) static int |
getFieldIndex(List<FieldInfo> fields,
String fieldName)
|
(package private) static List<FieldInfo> |
getInstanceFields(Class cls)
Returns a list of all non-transient non-static fields that are declared in the given class. |
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,
int initVersion)
|
(package private) void |
migrateFromBeta(Map<String,Format> formatMap)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
static List<FieldInfo> getInstanceFields(Class cls)
static FieldInfo getField(List<FieldInfo> fields, String fieldName)
static int getFieldIndex(List<FieldInfo> fields, String fieldName)
void collectRelatedFormats(Catalog catalog, Map<String,Format> newFormats)
void migrateFromBeta(Map<String,Format> formatMap)
void initialize(Catalog catalog, int initVersion)
Class getFieldClass()
String getClassName()
public String getName()
RawField
getName
in interface RawField
public Format getType()
RawField
getType
in interface RawField
public int compareTo(FieldInfo o)
compareTo
in interface Comparable<FieldInfo>
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |