public class HibernateTypeFactory extends Object implements SqlTypeFactory
SqlMetaType instances.
In the process of the META SQL statements and mapping rules parsing the input/output values META types have to be
established. For this purpose a factory class responsible for these META types construction has to be supplied.| Modifier and Type | Field and Description |
|---|---|
(package private) static Map<Class<?>,SqlMetaType> |
CLASS_TO_TYPE_MAP
The immutable map between the Java class types and the internal types.
|
(package private) static SqlMetaType |
DEFAULT
Singleton instance of default type.
|
(package private) static SqlMetaType |
ENUM_INT
Singleton instance of Integer based enumeration type.
|
(package private) static SqlMetaType |
ENUM_STRING
Singleton instance of String based enumeration type.
|
private static HibernateTypeFactory |
factory
The private static instance of this factory.
|
(package private) static SqlMetaType |
IDENTITY
Singleton instance of String based enumeration type.
|
(package private) static Map<String,SqlMetaType> |
META_TO_TYPE_MAP
The immutable map between the META types name and the internal types.
|
(package private) static SqlMetaType[] |
TYPES
Singleton instances of generic types.
|
| Modifier | Constructor and Description |
|---|---|
private |
HibernateTypeFactory()
The private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SqlMetaType[] |
getAllTypes() |
SqlMetaType |
getDefaultType() |
SqlMetaType |
getEnumIntegerType() |
SqlMetaType |
getEnumStringType() |
SqlMetaType |
getIdentityType() |
static HibernateTypeFactory |
getInstance()
The main method to obtain the singleton instance of this factory.
|
SqlMetaType |
getMetaType(Class<?> clazz) |
SqlMetaType |
getMetaType(String name) |
private static HibernateTypeFactory factory
static final SqlMetaType DEFAULT
static final SqlMetaType ENUM_INT
static final SqlMetaType ENUM_STRING
static final SqlMetaType IDENTITY
static final SqlMetaType[] TYPES
static Map<Class<?>,SqlMetaType> CLASS_TO_TYPE_MAP
static Map<String,SqlMetaType> META_TO_TYPE_MAP
public static HibernateTypeFactory getInstance()
public SqlMetaType getDefaultType()
getDefaultType in interface SqlTypeFactorypublic SqlMetaType getEnumIntegerType()
getEnumIntegerType in interface SqlTypeFactorypublic SqlMetaType getEnumStringType()
getEnumStringType in interface SqlTypeFactorypublic SqlMetaType getIdentityType()
getIdentityType in interface SqlTypeFactorypublic SqlMetaType[] getAllTypes()
getAllTypes in interface SqlTypeFactorypublic SqlMetaType getMetaType(Class<?> clazz)
getMetaType in interface SqlTypeFactorypublic SqlMetaType getMetaType(String name)
getMetaType in interface SqlTypeFactoryCopyright © 2014. All Rights Reserved.