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 aConverter
that 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 theEnum
type that this field uses.Get the corresonding core API database instance.Get the type of this field.<R> R
visit
(PermazenFieldSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.PermazenSimpleField
getDeclaringAnnotation, getEncoding, getFullName, getIndex, getParentField, getSetter, getValue, isIndexed, isSubField, setValue
Methods inherited from class io.permazen.PermazenField
getGetter, getKey, getPermazenClass
Methods inherited from class io.permazen.PermazenSchemaItem
getName, getSchemaId, getStorageId, toString
-
Method Details
-
visit
Description copied from class:PermazenField
Apply visitor pattern.- Overrides:
visit
in classPermazenSimpleField
- Type Parameters:
R
- visit return type- Parameters:
target
- target to invoke- Returns:
- value from the method of
target
corresponding to this instance's type
-
getTypeToken
Description copied from class:PermazenSimpleField
Get the type of this field.- Overrides:
getTypeToken
in classPermazenSimpleField
- Returns:
- this field's Java type
-
getSchemaItem
Description copied from class:PermazenSchemaItem
Get the corresonding core API database instance.- Overrides:
getSchemaItem
in classPermazenSimpleField
- Returns:
- this instance's correpsonding
SchemaItem
-
getEnumType
Get theEnum
type that this field uses.- Returns:
- this field's
Enum
type
-
getConverter
Description copied from class:PermazenField
Get aConverter
that 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:
getConverter
in classPermazenSimpleField
- Parameters:
ptx
- transaction- Returns:
Converter
from core API to Java, or null if no conversion is required
-