|
|||||||||
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,
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()
|
(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)
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,
int initVersion)
|
(package private) void |
migrateFromBeta(java.util.Map<java.lang.String,Format> formatMap)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
static java.util.List<FieldInfo> getInstanceFields(java.lang.Class cls)
static FieldInfo getField(java.util.List<FieldInfo> fields, java.lang.String fieldName)
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, int initVersion)
java.lang.Class getFieldClass()
java.lang.String getClassName()
public java.lang.String getName()
RawField
getName
in interface RawField
public Format getType()
RawField
getType
in interface 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |