|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SqlMetaType>
org.sqlproc.engine.impl.SqlMetaType
enum SqlMetaType
The enumeration of all SQL META Types, which is the internal type. This type is used for the special processing of the input/output value.
| Enum Constant Summary | |
|---|---|
BIG_DECIMAL
BIGDEC and BIGDECIMAL are related to Hibernate.BIG_DECIMAL and BigDecimal.class. |
|
BIG_INTEGER
BIGINT and BIGINTEGER are related to Hibernate.BIG_INTEGER and BigInteger.class. |
|
BOOLEAN
BOOLEAN and BOOL are related to Hibernate.BOOLEAN, Boolean.class and boolean.class. |
|
BYTE
BYTE is related to BYTE, Byte and byte.class. |
|
BYTE_ARRAY
BYTEARR and BYTEARRAY are related to Hibernate.BINARY, Byte[].class and byte[].class. |
|
CHAR
CHARACTER and CHAR are related to Hibernate.CHARACTER, Character.class and char.class. |
|
DATE
DATE is related to Hibernate.DATE and java.util.Date.class. |
|
DATETIME
DATETIME is related to Hibernate.TIMESTAMP and java.util.Date.class. |
|
DOUBLE
DOUBLE is related to Hibernate.DOUBLE, Double.class and double.class. |
|
ENUM_INT
EINTEGER and EINT are related to Hibernate.INTEGER. |
|
ENUM_STRING
ENUMSTRING and ESTRING are related to Hibernate.STRING. |
|
FLOAT
FLOAT is related to Hibernate.FLOAT, Float.class and float.class. |
|
FROMDATE
FROMDATE is related to Hibernate.DATE and java.util.Date.class. |
|
HIBERNATE
It represents the Hibernate type. |
|
INT
INT and INTEGER are related to Hibernate.INTEGER, Integer.class and int.class. |
|
LONG
LONG is related to Hibernate.LONG, Long.class and long.class. |
|
SHORT
SHORT is related to Hibernate.SHORT, Short.class and short.class. |
|
STRING
STRING and STR are related to Hibernate.STRING and String.class. |
|
TIME
TIME is related to Hibernate.TIME and java.util.Date.class. |
|
TIMESTAMP
TIMESTAMP and STAMP are related to Hibernate.TIMESTAMP and java.sql.Timestamp.class. |
|
TODATE
TODATE is related to Hibernate.DATE and java.util.Date.class. |
|
UNKNOWN
It represents the type derived from Java attribute class. |
|
| Field Summary | |
|---|---|
(package private) static java.util.Map<java.lang.Class<?>,SqlMetaType> |
classToTypeMap
The map between a Java class types and an internal types. |
private java.lang.Class<?>[] |
classTypes
The list of Java class type; |
private org.hibernate.type.Type |
hibernateType
The Hibernate type. |
protected org.slf4j.Logger |
logger
The internal type, which means special processing of the input/output value. |
(package private) static java.util.Map<java.lang.String,SqlMetaType> |
metaToTypeMap
The map between a String representation of an internal types and an internal types. |
private java.lang.String[] |
metaTypes
The list of String representation of the internal types, which means special processing of the input/output value. |
| Method Summary | |
|---|---|
(package private) org.hibernate.type.Type |
getHibernateType()
Returns the Hibernate type. |
(package private) abstract void |
setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
org.hibernate.type.Type hibernateType)
Bind an input value to a named query parameter. |
(package private) abstract void |
setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
org.hibernate.type.Type hibernateType)
Initializes the attribute of the result class with output values from SQL query execution. |
static SqlMetaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SqlMetaType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SqlMetaType INT
public static final SqlMetaType LONG
public static final SqlMetaType BYTE
public static final SqlMetaType BYTE_ARRAY
public static final SqlMetaType SHORT
public static final SqlMetaType STRING
public static final SqlMetaType CHAR
public static final SqlMetaType DATE
public static final SqlMetaType FROMDATE
public static final SqlMetaType TODATE
public static final SqlMetaType TIME
public static final SqlMetaType DATETIME
public static final SqlMetaType TIMESTAMP
public static final SqlMetaType BOOLEAN
public static final SqlMetaType FLOAT
public static final SqlMetaType DOUBLE
public static final SqlMetaType BIG_INTEGER
public static final SqlMetaType BIG_DECIMAL
public static final SqlMetaType ENUM_STRING
public static final SqlMetaType ENUM_INT
public static final SqlMetaType HIBERNATE
public static final SqlMetaType UNKNOWN
| Field Detail |
|---|
protected final org.slf4j.Logger logger
private org.hibernate.type.Type hibernateType
private java.lang.Class<?>[] classTypes
private java.lang.String[] metaTypes
static java.util.Map<java.lang.Class<?>,SqlMetaType> classToTypeMap
static java.util.Map<java.lang.String,SqlMetaType> metaToTypeMap
| Method Detail |
|---|
public static SqlMetaType[] values()
for (SqlMetaType c : SqlMetaType.values()) System.out.println(c);
public static SqlMetaType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullorg.hibernate.type.Type getHibernateType()
abstract void setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
org.hibernate.type.Type hibernateType)
resultInstance - the instance of the result classattributeName - the name of the attribute in the result classresultValue - Query execution output valuehibernateType - the Hibernate type
abstract void setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
org.hibernate.type.Type hibernateType)
query - the object-oriented representation of a Hibernate queryparamName - the name of the parameterinputValue - the possibly-null parameter value, a dynamic input valuetype - the Hibernate type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||