Package | Description |
---|---|
org.datanucleus.store.types |
Package providing basic java type handling for DataNucleus.
|
org.datanucleus.store.types.converters |
Package providing type conversion for member types, using the interface TypeConverter allowing
conversion between some member Java type, and a Java type suitable for persistence in the datastore.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,TypeConverter> |
TypeManager.autoApplyConvertersByType |
protected Map<String,TypeConverter> |
TypeManager.convertersByName
Map of TypeConverter keyed by their symbolic name.
|
protected Map<Class,Map<Class,TypeConverter>> |
TypeManager.typeConverterMap
Map of (Map of TypeConverter keyed by the datastore type), keyed by the member type.
|
Modifier and Type | Method and Description |
---|---|
TypeConverter |
TypeManager.getAutoApplyTypeConverterFortype(Class memberType) |
TypeConverter |
TypeManager.getDefaultTypeConverterForType(Class memberType)
Accessor for the default type converter for the provided Java type.
|
TypeConverter |
TypeManager.getTypeConverterForName(String converterName)
Accessor for the type converter with the provided name.
|
TypeConverter |
TypeManager.getTypeConverterForType(Class memberType,
Class datastoreType)
Accessor for the type converter for the provided Java type and its datastore type.
|
Modifier and Type | Method and Description |
---|---|
static Class |
TypeManager.getDatastoreTypeForTypeConverter(TypeConverter conv,
Class memberType) |
static Class |
TypeManager.getMemberTypeForTypeConverter(TypeConverter conv,
Class datastoreType) |
void |
TypeManager.registerConverter(String name,
TypeConverter converter)
TypeConverters are registered either from the contents of "plugin.xml" (i.e the builtin types) where the
name is of the form "dn.*", or from user-registered metadata (e.g JPA Annotations) where the name is
the class name of the converter.
|
void |
TypeManager.registerConverter(String name,
TypeConverter converter,
boolean autoApply,
String autoApplyType)
Register a TypeConverter with the TypeManager process.
|
Modifier and Type | Class and Description |
---|---|
class |
BigDecimalStringConverter
Class to handle the conversion between java.math.BigDecimal and a String form.
|
class |
BigIntegerStringConverter
Class to handle the conversion between java.math.BigInteger and a String form.
|
class |
BitSetStringConverter
Class to handle the conversion between java.util.BitSet and a String form.
|
class |
CalendarStringConverter
Class to handle the conversion between java.util.Calendar and a String form.
|
class |
ClassStringConverter
Class to handle the conversion between java.lang.Class and a String form.
|
class |
ColorStringConverter
Class to handle the conversion between java.awt.Color (RGBA) and a String form.
|
class |
CurrencyStringConverter
Class to handle the conversion between java.util.Currency and a String form.
|
class |
DateLongConverter
Class to handle the conversion between java.util.Date and a Long form.
|
class |
DateStringConverter
Class to handle the conversion between java.util.Date and a String form.
|
class |
IntegerStringConverter
Class to handle the conversion between java.lang.Integer and a String form.
|
class |
LocalDateStringConverter
Class to handle the conversion between javax.time.calendar.LocalDate and a String form.
|
class |
LocalDateTimeStringConverter
Class to handle the conversion between javax.time.calendar.LocalDateTime and a String form.
|
class |
LocaleStringConverter
Class to handle the conversion between java.util.Locale and a String form.
|
class |
LocalTimeLongConverter
Class to handle the conversion between javax.time.calendar.LocalTime and a long form (nanos of day).
|
class |
LocalTimeStringConverter
Class to handle the conversion between javax.time.calendar.LocalTime and a String form.
|
class |
LongStringConverter
Class to handle the conversion between java.lang.Long and a String form.
|
class |
SerializableByteArrayConverter
Convenience class to handle Java serialisation of a Serializable object to/from byte[].
|
class |
SerializableStringConverter
Convenience class to handle Java serialisation of a Serializable object to/from String.
|
class |
SqlDateLongConverter
Class to handle the conversion between java.sql.Date and a Long form.
|
class |
SqlDateStringConverter
Class to handle the conversion between java.sql.Date and a String form.
|
class |
SqlTimeLongConverter
Class to handle the conversion between java.sql.Time and a Long form.
|
class |
SqlTimestampLongConverter
Class to handle the conversion between java.sql.Timestamp and a Long form.
|
class |
SqlTimeStringConverter
Class to handle the conversion between java.sql.Time and a String form.
|
class |
StringBufferStringConverter
Class to handle the conversion between java.lang.StringBuffer and a String form.
|
class |
StringBuilderStringConverter
Class to handle the conversion between java.lang.StringBuilder and a String form.
|
class |
TimeZoneStringConverter
Class to handle the conversion between java.util.TimeZone and a String form.
|
class |
URIStringConverter
Class to handle the conversion between java.net.URI and a String form.
|
class |
URLStringConverter
Class to handle the conversion between java.net.URL and a String form.
|
class |
UUIDStringConverter
Class to handle the conversion between java.util.UUID and a String form.
|
Copyright © 2021. All rights reserved.