Class TransferNotificationRevisionType

java.lang.Object
org.hibernate.usertype.BaseUserTypeSupport<Long>
org.hibernate.usertype.UserTypeSupport<Long>
ecmwf.common.database.TransferNotificationRevisionType
All Implemented Interfaces:
Comparator<Long>, org.hibernate.type.spi.TypeConfigurationAware, org.hibernate.usertype.UserType<Long>, org.hibernate.usertype.UserVersionType<Long>

public final class TransferNotificationRevisionType extends org.hibernate.usertype.UserTypeSupport<Long> implements org.hibernate.usertype.UserVersionType<Long>
Revision zero preserves existing nonblocking writes; positive revisions are fenced.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(Long left, Long right)
     
    next(Long current, org.hibernate.engine.spi.SharedSessionContractImplementor session)
     
    seed(org.hibernate.engine.spi.SharedSessionContractImplementor session)
     

    Methods inherited from class org.hibernate.usertype.UserTypeSupport

    getTypeConfiguration, resolve, setTypeConfiguration

    Methods inherited from class org.hibernate.usertype.BaseUserTypeSupport

    assemble, deepCopy, disassemble, equals, getSqlType, hashCode, isMutable, javaType, jdbcType, nullSafeGet, nullSafeSet, returnedClass

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.usertype.UserType

    assemble, deepCopy, disassemble, equals, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getSqlType, getValueConverter, hashCode, isComparable, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, returnedClass
  • Constructor Details

    • TransferNotificationRevisionType

      public TransferNotificationRevisionType()
  • Method Details

    • seed

      public Long seed(org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      seed in interface org.hibernate.usertype.UserVersionType<Long>
    • next

      public Long next(Long current, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      next in interface org.hibernate.usertype.UserVersionType<Long>
    • compare

      public int compare(Long left, Long right)
      Specified by:
      compare in interface Comparator<Long>