public interface TypeManager
Modifier and Type | Method and Description |
---|---|
String[] |
filterOutSupportedSecondClassNames(String[] inputClassNames)
Convenience method to filter out any supported classes from a list.
|
TypeConverter |
getAutoApplyTypeConverterForType(Class memberType)
Method to return a TypeConverter that should be applied by default for the specified java (member) type.
|
TypeConverter |
getDefaultTypeConverterForType(Class memberType)
Accessor for the default type converter for the provided Java type.
|
Set<String> |
getSupportedSecondClassTypes()
Accessor for the supported second-class Types.
|
TypeConverter |
getTypeConverterForName(String converterName)
Accessor for the type converter with the provided name.
|
TypeConverter |
getTypeConverterForType(Class memberType,
Class datastoreType)
Accessor for the type converter for the provided Java type and its datastore type.
|
Collection<TypeConverter> |
getTypeConvertersForType(Class memberType)
Accessor for the available type converters for the provided Java type.
|
Class |
getTypeForSecondClassWrapper(String className)
Accessor for a java type that the supplied class is a SCO wrapper for.
|
Class |
getWrappedTypeBackedForType(String className)
Accessor for the backing-store Second Class Wrapper class for the supplied class.
|
Class |
getWrapperTypeForType(String className)
Accessor for the SCO wrapper for the type
|
boolean |
isDefaultEmbeddedType(Class c)
Accessor for whether the type is by default embedded.
|
boolean |
isDefaultFetchGroup(Class c)
Accessor for whether the type is by default in the DFG.
|
boolean |
isDefaultFetchGroupForCollection(Class c,
Class genericType)
Accessor for whether the generic collection type is by default in the DFG.
|
boolean |
isDefaultPersistent(Class c)
Accessor for whether the type is by default persistent.
|
boolean |
isSecondClassMutableType(String className)
Accessor for whether the type is SCO mutable.
|
boolean |
isSecondClassWrapper(String className)
Accessor for whether the type is a SCO wrapper itself.
|
boolean |
isSupportedSecondClassType(String className)
Accessor for whether a class is supported as being second class.
|
void |
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 |
registerConverter(String name,
TypeConverter converter,
boolean autoApply,
String autoApplyType)
Register a TypeConverter with the TypeManager process.
|
Set<String> getSupportedSecondClassTypes()
boolean isSupportedSecondClassType(String className)
className
- The class nameString[] filterOutSupportedSecondClassNames(String[] inputClassNames)
inputClassNames
- Names of the classesboolean isDefaultPersistent(Class c)
c
- The typeboolean isDefaultFetchGroup(Class c)
c
- The typeboolean isDefaultFetchGroupForCollection(Class c, Class genericType)
c
- The typegenericType
- The element generic typeboolean isDefaultEmbeddedType(Class c)
c
- The typeboolean isSecondClassMutableType(String className)
className
- The typeClass getWrapperTypeForType(String className)
className
- The typeClass getWrappedTypeBackedForType(String className)
className
- The class nameboolean isSecondClassWrapper(String className)
className
- The typeClass getTypeForSecondClassWrapper(String className)
className
- Name of the classTypeConverter getTypeConverterForName(String converterName)
converterName
- Name of the convertervoid registerConverter(String name, TypeConverter converter, boolean autoApply, String autoApplyType)
name
- The name to register the converter underconverter
- The converterautoApply
- Whether this should be used as an auto-apply converterautoApplyType
- Type to auto applyvoid registerConverter(String name, TypeConverter converter)
name
- The name to register the converter underconverter
- The converterTypeConverter getAutoApplyTypeConverterForType(Class memberType)
memberType
- The java (member) typeTypeConverter getDefaultTypeConverterForType(Class memberType)
memberType
- Java type for the memberTypeConverter getTypeConverterForType(Class memberType, Class datastoreType)
memberType
- Java type for the memberdatastoreType
- Java type for the datastoreCollection<TypeConverter> getTypeConvertersForType(Class memberType)
memberType
- The java typeCopyright © 2015. All rights reserved.