Package | Description |
---|---|
org.datanucleus.store.schema.table |
Provides a series of convenience classes for modelling tables and columns that a class and its members map onto.
|
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 TypeConverter |
MemberColumnMappingImpl.typeConverter |
Modifier and Type | Method and Description |
---|---|
TypeConverter |
MemberColumnMapping.getTypeConverter() |
TypeConverter |
MemberColumnMappingImpl.getTypeConverter() |
protected TypeConverter |
CompleteClassTable.getTypeConverterForMember(AbstractMemberMetaData mmd,
ColumnMetaData[] colmds,
TypeManager typeMgr) |
TypeConverter |
SchemaVerifier.verifyTypeConverterForMember(AbstractMemberMetaData mmd,
TypeConverter conv)
Method to allow the verifier to approve, override, or null out the TypeConverter to be used for a member.
|
Modifier and Type | Method and Description |
---|---|
protected ColumnImpl |
CompleteClassTable.addColumn(AbstractMemberMetaData mmd,
String colName,
ColumnType colType,
TypeConverter typeConv) |
protected ColumnImpl |
CompleteClassTable.addColumn(AbstractMemberMetaData mmd,
String colName,
TypeConverter typeConv) |
protected ColumnImpl |
CompleteClassTable.addEmbeddedColumn(String colName,
TypeConverter typeConv) |
void |
MemberColumnMapping.setTypeConverter(TypeConverter typeConv) |
void |
MemberColumnMappingImpl.setTypeConverter(TypeConverter typeConv) |
TypeConverter |
SchemaVerifier.verifyTypeConverterForMember(AbstractMemberMetaData mmd,
TypeConverter conv)
Method to allow the verifier to approve, override, or null out the TypeConverter to be used for a member.
|
Constructor and Description |
---|
MemberColumnMappingImpl(AbstractMemberMetaData mmd,
Column[] cols,
TypeConverter typeConv) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,TypeConverter> |
TypeManagerImpl.autoApplyConvertersByType |
protected Map<String,TypeConverter> |
TypeManagerImpl.convertersByName
Map of TypeConverter keyed by their symbolic name.
|
protected Map<Class,Map<Class,TypeConverter>> |
TypeManagerImpl.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)
Method to return a TypeConverter that should be applied by default for the specified java (member) type.
|
TypeConverter |
TypeManagerImpl.getAutoApplyTypeConverterForType(Class memberType) |
TypeConverter |
TypeManager.getDefaultTypeConverterForType(Class memberType)
Accessor for the default type converter for the provided Java type.
|
TypeConverter |
TypeManagerImpl.getDefaultTypeConverterForType(Class memberType) |
TypeConverter |
TypeManager.getTypeConverterForName(String converterName)
Accessor for the type converter with the provided name.
|
TypeConverter |
TypeManagerImpl.getTypeConverterForName(String converterName) |
TypeConverter |
TypeManager.getTypeConverterForType(Class memberType,
Class datastoreType)
Accessor for the type converter for the provided Java type and its datastore type.
|
TypeConverter |
TypeManagerImpl.getTypeConverterForType(Class memberType,
Class datastoreType) |
Modifier and Type | Method and Description |
---|---|
Collection<TypeConverter> |
TypeManager.getTypeConvertersForType(Class memberType)
Accessor for the available type converters for the provided Java type.
|
Collection<TypeConverter> |
TypeManagerImpl.getTypeConvertersForType(Class memberType) |
Modifier and Type | Method and Description |
---|---|
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 |
TypeManagerImpl.registerConverter(String name,
TypeConverter converter) |
void |
TypeManager.registerConverter(String name,
TypeConverter converter,
boolean autoApply,
String autoApplyType)
Register a TypeConverter with the TypeManager process.
|
void |
TypeManagerImpl.registerConverter(String name,
TypeConverter converter,
boolean autoApply,
String autoApplyType) |
Modifier and Type | Class and Description |
---|---|
class |
BigDecimalArrayByteBufferConverter
Convenience class to handle Java serialisation of a BigDecimal[] object to/from ByteBuffer.
|
class |
BigDecimalDoubleConverter
Class to handle the conversion between java.math.BigDecimal and a Double form.
|
class |
BigDecimalStringConverter
Class to handle the conversion between java.math.BigDecimal and a String form.
|
class |
BigIntegerArrayByteBufferConverter
Convenience class to handle Java serialisation of a BigInteger[] object to/from ByteBuffer.
|
class |
BigIntegerLongConverter
Class to handle the conversion between java.math.BigInteger and a Long 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 |
BooleanArrayByteBufferConverter
Convenience class to handle Java serialisation of a boolean[] object to/from ByteBuffer.
|
class |
BooleanIntegerConverter
Class to handle the conversion between java.lang.Boolean and an Integer (0, 1) form.
|
class |
BooleanYNConverter
Class to handle the conversion between java.lang.Boolean and a Character ("Y", "N") form.
|
class |
ByteArrayByteBufferConverter
Convenience class to handle Java serialisation of a byte[] object to/from ByteBuffer.
|
class |
ByteObjectArrayByteBufferConverter
Convenience class to handle Java serialisation of a byte[] object to/from ByteBuffer.
|
class |
CalendarComponentsConverter
Class to handle the conversion between java.util.Calendar and (Long, String) being the time in millisecs plus the timezone.
|
class |
CalendarDateConverter
Class to handle the conversion between java.util.Calendar and a java.util.Date form.
|
class |
CalendarStringConverter
Class to handle the conversion between java.util.Calendar and a String form.
|
class |
CalendarTimestampConverter
Class to handle the conversion between java.util.Calendar and a java.sql.Timestamp.
|
class |
CharacterStringConverter
Class to handle the conversion between Character and a String form.
|
class |
CharArrayByteBufferConverter
Convenience class to handle Java serialisation of a char[] object to/from ByteBuffer.
|
class |
ClassStringConverter
Class to handle the conversion between java.lang.Class and a String form.
|
class |
ColorComponentsConverter
TypeConverter for storing a java.awt.Color as its 4 components (red, green, blue, alpha).
|
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 |
DoubleArrayByteBufferConverter
Convenience class to handle Java serialisation of a double[] object to/from ByteBuffer.
|
class |
FloatArrayByteBufferConverter
Convenience class to handle Java serialisation of a float[] object to/from ByteBuffer.
|
class |
IntArrayByteBufferConverter
Convenience class to handle Java serialisation of a int[] object to/from ByteBuffer.
|
class |
IntegerStringConverter
Class to handle the conversion between java.lang.Integer and a String form.
|
class |
LocaleStringConverter
Class to handle the conversion between java.util.Locale and a String form.
|
class |
LongArrayByteBufferConverter
Convenience class to handle Java serialisation of a long[] object to/from ByteBuffer.
|
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 |
SerializableByteBufferConverter
Convenience class to handle Java serialisation of a Serializable object to/from ByteBuffer.
|
class |
SerializableStringConverter
Convenience class to handle Java serialisation of a Serializable object to/from String.
|
class |
ShortArrayByteBufferConverter
Convenience class to handle Java serialisation of a short[] object to/from ByteBuffer.
|
class |
SqlDateDateConverter
Class to handle the conversion between java.sql.Date and a java.util.Date form.
|
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 |
SqlTimeDateConverter
Class to handle the conversion between java.sql.Time and a java.util.Date form.
|
class |
SqlTimeLongConverter
Class to handle the conversion between java.sql.Time and a Long form.
|
class |
SqlTimestampDateConverter
Class to handle the conversion between java.sql.Timestamp and a java.util.Date form.
|
class |
SqlTimestampLongConverter
Class to handle the conversion between java.sql.Timestamp and a Long form.
|
class |
SqlTimestampStringConverter
Class to handle the conversion between java.sql.Timestamp and a String 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.
|
Modifier and Type | Method and Description |
---|---|
static Class |
TypeConverterHelper.getDatastoreTypeForTypeConverter(TypeConverter conv,
Class memberType) |
static Class |
TypeConverterHelper.getMemberTypeForTypeConverter(TypeConverter conv,
Class datastoreType) |
Copyright © 2015. All rights reserved.