|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.hibernate.type.HibernateTypeFactory
public class HibernateTypeFactory
The factory definition for the Hibernate stack, which can be used to construct the 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.
The implementation is based on the Singleton design pattern.
| Field Summary | |
|---|---|
(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. |
| Constructor Summary | |
|---|---|
private |
HibernateTypeFactory()
The private constructor. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
private HibernateTypeFactory()
| Method Detail |
|---|
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 SqlTypeFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||