本文整理汇总了Java中javax.jdo.JDOHelper.getVersion方法的典型用法代码示例。如果您正苦于以下问题:Java JDOHelper.getVersion方法的具体用法?Java JDOHelper.getVersion怎么用?Java JDOHelper.getVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.jdo.JDOHelper
的用法示例。
在下文中一共展示了JDOHelper.getVersion方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getVersionSequence
import javax.jdo.JDOHelper; //导入方法依赖的package包/类
public Long getVersionSequence() {
if(!(this instanceof javax.jdo.spi.PersistenceCapable)) {
return null;
}
final javax.jdo.spi.PersistenceCapable persistenceCapable = (javax.jdo.spi.PersistenceCapable) this;
final Long version = (Long) JDOHelper.getVersion(persistenceCapable);
return version;
}
示例2: getVersionSequence
import javax.jdo.JDOHelper; //导入方法依赖的package包/类
@Hidden(where=Where.ALL_TABLES)
@Disabled
@MemberOrder(name="Detail", sequence = "99")
@Named("Version")
public Long getVersionSequence() {
if(!(this instanceof PersistenceCapable)) {
return null;
}
PersistenceCapable persistenceCapable = (PersistenceCapable) this;
final Long version = (Long) JDOHelper.getVersion(persistenceCapable);
return version;
}
示例3: getVersion
import javax.jdo.JDOHelper; //导入方法依赖的package包/类
@Programmatic
private long getVersion() {
return (Long)JDOHelper.getVersion(this);
}