|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.jdbc.type.JdbcTypeFactory
public class JdbcTypeFactory
The factory definition for the JDBC 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 SqlMetaType |
BIG_DECIMAL
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BIG_INTEGER
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BLOB
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BOOLEAN
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BYTE
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BYTE_ARRAY
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
BYTE_ARRAY_WRAPPER
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
CHAR
Singleton instance of String based enumeration type. |
(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 |
CLOB
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
DATE
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
DATE_TIME
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
DEFAULT
Singleton instance of default type. |
(package private) static SqlMetaType |
DOUBLE
Singleton instance of String based enumeration 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 JdbcTypeFactory |
factory
The private static instance of this factory. |
(package private) static SqlMetaType |
FLOAT
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
FROM_DATE
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
IDENTITY
Singleton instance of auto-generated identity type. |
(package private) static SqlMetaType |
INTEGER
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
LONG
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 |
ORACLE_CURSOR
Singleton instance of auto-generated identity type. |
(package private) static SqlMetaType |
OTHER
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
SHORT
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
STRING
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
TEXT
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
TIME
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
TIMESTAMP
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType |
TO_DATE
Singleton instance of String based enumeration type. |
(package private) static SqlMetaType[] |
TYPES
Singleton instances of generic types. |
| Constructor Summary | |
|---|---|
private |
JdbcTypeFactory()
The private constructor. |
| Method Summary | |
|---|---|
SqlMetaType[] |
getAllTypes()
Returns the collection of all the META types provided by this factory. |
SqlMetaType |
getDefaultType()
Returns the default META type. |
SqlMetaType |
getEnumIntegerType()
Returns the META type for the enumerations based on Integer internal type. |
SqlMetaType |
getEnumStringType()
Returns the META type for the enumerations based on String internal type. |
SqlMetaType |
getIdentityType()
Returns the META type for an auto-generated identity. |
static JdbcTypeFactory |
getInstance()
The main method to obtain the singleton instance of this factory. |
SqlMetaType |
getMetaType(Class<?> clazz)
Returns the META type, which can be used to handle input/output values of provided Java type. |
SqlMetaType |
getMetaType(String name)
Returns the META type with the provided name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static JdbcTypeFactory factory
static final SqlMetaType ENUM_INT
static final SqlMetaType ENUM_STRING
static final SqlMetaType BIG_DECIMAL
static final SqlMetaType BIG_INTEGER
static final SqlMetaType BOOLEAN
static final SqlMetaType BYTE_ARRAY
static final SqlMetaType BYTE_ARRAY_WRAPPER
static final SqlMetaType BYTE
static final SqlMetaType CHAR
static final SqlMetaType DATE_TIME
static final SqlMetaType DATE
static final SqlMetaType DOUBLE
static final SqlMetaType FLOAT
static final SqlMetaType FROM_DATE
static final SqlMetaType INTEGER
static final SqlMetaType LONG
static final SqlMetaType SHORT
static final SqlMetaType TEXT
static final SqlMetaType STRING
static final SqlMetaType TIMESTAMP
static final SqlMetaType TIME
static final SqlMetaType TO_DATE
static final SqlMetaType BLOB
static final SqlMetaType CLOB
static final SqlMetaType OTHER
static final SqlMetaType ORACLE_CURSOR
static final SqlMetaType IDENTITY
static final SqlMetaType DEFAULT
static final SqlMetaType[] TYPES
static Map<Class<?>,SqlMetaType> CLASS_TO_TYPE_MAP
static Map<String,SqlMetaType> META_TO_TYPE_MAP
| Constructor Detail |
|---|
private JdbcTypeFactory()
| Method Detail |
|---|
public static JdbcTypeFactory 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 SqlTypeFactoryclazz - the input/output value Java type
public SqlMetaType getMetaType(String name)
getMetaType in interface SqlTypeFactoryname - the name of the META SQL type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||