org.sqlproc.engine.hibernate.type
Class HibernateDefaultType.MyIntegerType

java.lang.Object
  extended by org.hibernate.type.AbstractStandardBasicType<T>
      extended by org.hibernate.type.AbstractSingleColumnStandardBasicType<Integer>
          extended by org.sqlproc.engine.hibernate.type.HibernateDefaultType.MyIntegerType
All Implemented Interfaces:
Serializable, org.hibernate.type.BasicType, org.hibernate.type.DiscriminatorType<Integer>, org.hibernate.type.IdentifierType<Integer>, org.hibernate.type.LiteralType<Integer>, org.hibernate.type.PrimitiveType<Integer>, org.hibernate.type.SingleColumnType<Integer>, org.hibernate.type.StringRepresentableType<Integer>, org.hibernate.type.Type, org.hibernate.type.VersionType<Integer>, org.hibernate.type.XmlRepresentableType<Integer>
Enclosing class:
HibernateDefaultType

public static class HibernateDefaultType.MyIntegerType
extends org.hibernate.type.AbstractSingleColumnStandardBasicType<Integer>
implements org.hibernate.type.PrimitiveType<Integer>, org.hibernate.type.DiscriminatorType<Integer>, org.hibernate.type.VersionType<Integer>

See Also:
Serialized Form

Field Summary
static HibernateDefaultType.MyIntegerType INSTANCE
           
static Integer ZERO
           
 
Constructor Summary
HibernateDefaultType.MyIntegerType()
           
 
Method Summary
 Comparator<Integer> getComparator()
           
 Serializable getDefaultValue()
           
 String getName()
           
 Class getPrimitiveClass()
           
 String[] getRegistrationKeys()
           
 Integer next(Integer current, org.hibernate.engine.spi.SessionImplementor session)
           
 String objectToSQLString(Integer value, org.hibernate.dialect.Dialect dialect)
           
 Integer seed(org.hibernate.engine.spi.SessionImplementor session)
           
 Integer stringToObject(String xml)
           
 
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
 
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.type.PrimitiveType
toString
 
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
 
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
 

Field Detail

INSTANCE

public static final HibernateDefaultType.MyIntegerType INSTANCE

ZERO

public static final Integer ZERO
Constructor Detail

HibernateDefaultType.MyIntegerType

public HibernateDefaultType.MyIntegerType()
Method Detail

getName

public String getName()
Specified by:
getName in interface org.hibernate.type.Type

getRegistrationKeys

public String[] getRegistrationKeys()
Specified by:
getRegistrationKeys in interface org.hibernate.type.BasicType
Overrides:
getRegistrationKeys in class org.hibernate.type.AbstractStandardBasicType<Integer>

getDefaultValue

public Serializable getDefaultValue()
Specified by:
getDefaultValue in interface org.hibernate.type.PrimitiveType<Integer>

getPrimitiveClass

public Class getPrimitiveClass()
Specified by:
getPrimitiveClass in interface org.hibernate.type.PrimitiveType<Integer>

objectToSQLString

public String objectToSQLString(Integer value,
                                org.hibernate.dialect.Dialect dialect)
                         throws Exception
Specified by:
objectToSQLString in interface org.hibernate.type.LiteralType<Integer>
Throws:
Exception

stringToObject

public Integer stringToObject(String xml)
Specified by:
stringToObject in interface org.hibernate.type.IdentifierType<Integer>

seed

public Integer seed(org.hibernate.engine.spi.SessionImplementor session)
Specified by:
seed in interface org.hibernate.type.VersionType<Integer>

next

public Integer next(Integer current,
                    org.hibernate.engine.spi.SessionImplementor session)
Specified by:
next in interface org.hibernate.type.VersionType<Integer>

getComparator

public Comparator<Integer> getComparator()
Specified by:
getComparator in interface org.hibernate.type.VersionType<Integer>


Copyright © 2013. All Rights Reserved.