public boolean isClassLevelOptimisticLockMode(PersistentClass pc) {
return pc.getOptimisticLockStyle() != OptimisticLockStyle.VERSION;
}
public String getClassLevelOptimisticLockMode(PersistentClass pc) {
OptimisticLockStyle oMode = pc.getOptimisticLockStyle();
if ( oMode == OptimisticLockStyle.DIRTY ) {
return "dirty";
}
else if ( oMode == OptimisticLockStyle.ALL ) {
return "all";