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

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

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

See Also:
Serialized Form

Field Summary
static HibernateDefaultType.MyLongType INSTANCE
           
private static Long ZERO
           
 
Constructor Summary
HibernateDefaultType.MyLongType()
           
 
Method Summary
 Comparator<Long> getComparator()
           
 Serializable getDefaultValue()
           
 String getName()
           
 Class getPrimitiveClass()
           
 String[] getRegistrationKeys()
           
 Long next(Long current, org.hibernate.engine.spi.SessionImplementor session)
           
 String objectToSQLString(Long value, org.hibernate.dialect.Dialect dialect)
           
 Long seed(org.hibernate.engine.spi.SessionImplementor session)
           
 Long 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.MyLongType INSTANCE

ZERO

private static final Long ZERO
Constructor Detail

HibernateDefaultType.MyLongType

public HibernateDefaultType.MyLongType()
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<Long>

getDefaultValue

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

getPrimitiveClass

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

stringToObject

public Long stringToObject(String xml)
                    throws Exception
Specified by:
stringToObject in interface org.hibernate.type.IdentifierType<Long>
Throws:
Exception

next

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

seed

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

getComparator

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

objectToSQLString

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


Copyright © 2013. All Rights Reserved.