Save This Page
Home » hibernate-annotations-3.4.0.CR1 » org.hibernate » type » [javadoc | source]
org.hibernate.type
public interface: VersionType [javadoc | source]

All Implemented Interfaces:
    Type

All Known Implementing Classes:
    BinaryType, TimestampType, CalendarType, LongType, ByteType, ShortType, DbTimestampType, IntegerType, CustomType

A Type that may be used to version data.
Method from org.hibernate.type.VersionType Summary:
getComparator,   isEqual,   next,   seed
Method from org.hibernate.type.VersionType Detail:
 public Comparator getComparator()
    Get a comparator for version values.
 public boolean isEqual(Object x,
    Object y)
    Are the two version values considered equal?
 public Object next(Object current,
    SessionImplementor session)
    Increment the version.
 public Object seed(SessionImplementor session)
    Generate an initial version.