public class HibernateType extends Object implements SqlMetaType
| Modifier and Type | Field and Description |
|---|---|
private org.hibernate.type.Type |
hibernateType
The Hibernate type.
|
(package private) static Map<String,Field> |
hibernateTypes
The map between the Hibernate types names and the Hibernate types.
|
protected static org.slf4j.Logger |
logger
The internal slf4j logger.
|
| Constructor and Description |
|---|
HibernateType(String sMetaType)
Creates a new instance of general Hibernate type based on the declaration in the META SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addScalar(SqlTypeFactory typeFactory,
SqlQuery query,
String dbName,
Class<?>... attributeTypes) |
Object |
getProviderSqlType() |
void |
setParameter(SqlRuntimeContext runtimeCtx,
SqlQuery query,
String paramName,
Object inputValue,
boolean ingoreError,
Class<?>... inputTypes) |
void |
setResult(SqlRuntimeContext runtimeCtx,
Object resultInstance,
String attributeName,
Object resultValue,
boolean ingoreError) |
protected static final org.slf4j.Logger logger
static Map<String,Field> hibernateTypes
private org.hibernate.type.Type hibernateType
public HibernateType(String sMetaType)
sMetaType - the name of the Hibernate type, for example INTEGERpublic Object getProviderSqlType()
getProviderSqlType in interface SqlMetaTypepublic void addScalar(SqlTypeFactory typeFactory, SqlQuery query, String dbName, Class<?>... attributeTypes)
addScalar in interface SqlMetaTypepublic void setResult(SqlRuntimeContext runtimeCtx, Object resultInstance, String attributeName, Object resultValue, boolean ingoreError) throws SqlRuntimeException
setResult in interface SqlMetaTypeSqlRuntimeExceptionpublic void setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes) throws SqlRuntimeException
setParameter in interface SqlMetaTypeSqlRuntimeExceptionCopyright © 2016. All rights reserved.