Package io.objectbox.converter
For use with
@Convert
: PropertyConverter
to convert custom Property types.
For more details look at the documentation of individual classes and docs.objectbox.io/advanced/custom-types.
-
Interface Summary Interface Description PropertyConverter<P,D> To use custom types in your entity, implement this to convert db values to entity values and back. -
Class Summary Class Description FlexObjectConverter Converts betweenObject
properties and byte arrays using FlexBuffers.IntegerFlexMapConverter AFlexObjectConverter
that usesInteger
as map keys.IntegerLongMapConverter LikeIntegerFlexMapConverter
, but always restores integer map values asLong
.LongFlexMapConverter AFlexObjectConverter
that usesLong
as map keys.LongLongMapConverter LikeLongFlexMapConverter
, but always restores integer map values asLong
.NullToEmptyStringConverter Used as a converter if a property is annotated with@DefaultValue("")
.StringFlexMapConverter StringLongMapConverter LikeStringFlexMapConverter
, but always restores integer map values asLong
.StringMapConverter Converts a String map entity property to a byte array database value using FlexBuffers.