Package io.permazen
Class PermazenMapField
java.lang.Object
io.permazen.PermazenSchemaItem
io.permazen.PermazenField
io.permazen.PermazenComplexField
io.permazen.PermazenMapField
Represents a map field in a
PermazenClass.-
Method Summary
Modifier and TypeMethodDescriptionio.permazen.NavigableMapConverter<?,?, ?, ?> Get 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 theAnnotationthat declared this field.Get the key sub-field.MapField<?,?> Get the corresonding core API database instance.Get the sub-fields associated with this field.TypeToken<?>Get the type of this field.NavigableMap<?,?> getValue(PermazenObject pobj) Get the Java value of this field in the given Java model object.Get the value sub-field.<R> Rvisit(PermazenFieldSwitch<R> target) Apply visitor pattern.Methods inherited from class io.permazen.PermazenComplexField
getSubFieldMethods inherited from class io.permazen.PermazenField
getFullName, getGetter, getKey, getPermazenClassMethods inherited from class io.permazen.PermazenSchemaItem
getName, getSchemaId, getStorageId, toString
-
Method Details
-
getDeclaringAnnotation
Description copied from class:PermazenFieldGet theAnnotationthat declared this field.If this field was auto-generated from an abstract method with no annotation, a non-null
Annotationis still returned; it will have all default values.- Overrides:
getDeclaringAnnotationin classPermazenField- Returns:
- declaring annotation
-
getKeyField
Get the key sub-field.- Returns:
- this field's key sub-field
-
getValueField
Get the value sub-field.- Returns:
- this field's value sub-field
-
getValue
Description copied from class:PermazenFieldGet the Java value of this field in the given Java model object. Does not alter the schema of the object.- Specified by:
getValuein classPermazenField- Parameters:
pobj- object containing this field- Returns:
- this field's value in
pobj
-
visit
Description copied from class:PermazenFieldApply visitor pattern.- Specified by:
visitin classPermazenField- Type Parameters:
R- visit return type- Parameters:
target- target to invoke- Returns:
- value from the method of
targetcorresponding to this instance's type
-
getSubFields
Description copied from class:PermazenComplexFieldGet the sub-fields associated with this field.- Specified by:
getSubFieldsin classPermazenComplexField- Returns:
- this instance's sub-fields (in order)
-
getSchemaItem
Description copied from class:PermazenSchemaItemGet the corresonding core API database instance.- Overrides:
getSchemaItemin classPermazenComplexField- Returns:
- this instance's correpsonding
SchemaItem
-
getTypeToken
Description copied from class:PermazenFieldGet the type of this field.- Specified by:
getTypeTokenin classPermazenField- Returns:
- this field's type
-
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.- Specified by:
getConverterin classPermazenField- Parameters:
ptx- transaction- Returns:
Converterfrom core API to Java, or null if no conversion is required
-