versiontype.java
来自「hibernate-3.0.5 中文文档」· Java 代码 · 共 35 行
JAVA
35 行
//$Id: VersionType.java,v 1.3 2005/02/16 12:50:19 oneovthafew Exp $package org.hibernate.type;import java.util.Comparator;/** * A <tt>Type</tt> that may be used to version data. * @author Gavin King */public interface VersionType extends Type { /** * Generate an initial version. * @return an instance of the type */ public Object seed(); /** * Increment the version. * @param current the current version * @return an instance of the type */ public Object next(Object current); /** * Get a comparator for the version numbers */ public Comparator getComparator(); public boolean isEqual(Object x, Object y);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?