Class HibernateIdentityType
- java.lang.Object
-
- org.sqlproc.engine.type.SqlIdentityType
-
- org.sqlproc.engine.hibernate.type.HibernateIdentityType
-
- All Implemented Interfaces:
SqlMetaType,SqlTaggedMetaType
public class HibernateIdentityType extends SqlIdentityType
The Hibernate META type for an auto-generated identity.- Author:
- Vladimir Hudec
-
-
Field Summary
-
Fields inherited from class org.sqlproc.engine.type.SqlIdentityType
logger
-
-
Constructor Summary
Constructors Constructor Description HibernateIdentityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScalar(SqlTypeFactory typeFactory, SqlQuery query, String dbName, Class<?>... attributeTypes)Class<?>[]getClassTypes()ObjectgetProviderSqlType()voidsetParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object identitySetter, boolean ingoreError, Class<?>... inputTypes)voidsetResult(SqlRuntimeContext runtimeCtx, Object resultInstance, String attributeName, Object resultValue, boolean ingoreError)-
Methods inherited from class org.sqlproc.engine.type.SqlIdentityType
getMetaTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sqlproc.engine.type.SqlMetaType
addScalarEntryLog, error, getResult, setParameterEntryLog, setResultEntryLog
-
-
-
-
Method Detail
-
addScalar
public void addScalar(SqlTypeFactory typeFactory, SqlQuery query, String dbName, Class<?>... attributeTypes)
- Specified by:
addScalarin interfaceSqlMetaType- Overrides:
addScalarin classSqlIdentityType
-
setResult
public void setResult(SqlRuntimeContext runtimeCtx, Object resultInstance, String attributeName, Object resultValue, boolean ingoreError) throws SqlRuntimeException
- Specified by:
setResultin interfaceSqlMetaType- Overrides:
setResultin classSqlIdentityType- Throws:
SqlRuntimeException
-
setParameter
public void setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object identitySetter, boolean ingoreError, Class<?>... inputTypes) throws SqlRuntimeException
- Specified by:
setParameterin interfaceSqlMetaType- Overrides:
setParameterin classSqlIdentityType- Throws:
SqlRuntimeException
-
getClassTypes
public Class<?>[] getClassTypes()
- Specified by:
getClassTypesin interfaceSqlTaggedMetaType- Overrides:
getClassTypesin classSqlIdentityType
-
getProviderSqlType
public Object getProviderSqlType()
-
-