Package io.permazen
Class PermazenEnumField
java.lang.Object
io.permazen.PermazenSchemaItem
io.permazen.PermazenField
io.permazen.PermazenSimpleField
io.permazen.PermazenEnumField
Represents an
Enum field in a PermazenClass.-
Method Summary
Modifier and TypeMethodDescriptionGet aConverterthat converts this field's value from what the core database returns to what the Java application expects, or null if no conversion is needed.Get theEnumtype that this field uses.Get the corresonding core API database instance.Get the type of this field.<R> Rvisit(PermazenFieldSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.PermazenSimpleField
getDeclaringAnnotation, getEncoding, getFullName, getIndex, getParentField, getSetter, getValue, isIndexed, isSubField, setValueMethods inherited from class io.permazen.PermazenField
getGetter, getKey, getPermazenClassMethods inherited from class io.permazen.PermazenSchemaItem
getName, getSchemaId, getStorageId, toString
-
Method Details
-
visit
Description copied from class:PermazenFieldApply visitor pattern.- Overrides:
visitin classPermazenSimpleField- Type Parameters:
R- visit return type- Parameters:
target- target to invoke- Returns:
- value from the method of
targetcorresponding to this instance's type
-
getTypeToken
Description copied from class:PermazenSimpleFieldGet the type of this field.- Overrides:
getTypeTokenin classPermazenSimpleField- Returns:
- this field's Java type
-
getSchemaItem
Description copied from class:PermazenSchemaItemGet the corresonding core API database instance.- Overrides:
getSchemaItemin classPermazenSimpleField- Returns:
- this instance's correpsonding
SchemaItem
-
getEnumType
Get theEnumtype that this field uses.- Returns:
- this field's
Enumtype
-
getConverter
Description copied from class:PermazenFieldGet aConverterthat converts this field's value from what the core database returns to what the Java application expects, or null if no conversion is needed.- Overrides:
getConverterin classPermazenSimpleField- Parameters:
ptx- transaction- Returns:
Converterfrom core API to Java, or null if no conversion is required
-