Package org.hibernate.engine

Examples of org.hibernate.engine.OptimisticLockStyle


  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";
View Full Code Here

TOP

Related Classes of org.hibernate.engine.OptimisticLockStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.