Package evolaris.framework.database.datamodel

Examples of evolaris.framework.database.datamodel.Semaphore


   * @param session to be used by business methods within this transaction
   * @param accessedGroupId ID of group to be locked; null => all groups are locked
   */
  private static void lockSemaphore(Session session,Long accessedGroupId){
    // TODO create and update group-specific locking single entries in an extended semaphore table on demand
    Semaphore semaphore = (Semaphore) session.load(Semaphore.class, 1L, LockMode.UPGRADE);
    semaphore.setEditedAt(new Date(System.currentTimeMillis()));
    session.save(semaphore);
  }
View Full Code Here

TOP

Related Classes of evolaris.framework.database.datamodel.Semaphore

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.