Package fi.foyt.hibernate.gae.search.persistence.domainmodel

Examples of fi.foyt.hibernate.gae.search.persistence.domainmodel.Lock


  public LockDAO() {
    super("LOCK", true);
  }

  public Lock create(Directory directory, String name) {
    Lock lock = new Lock(directory);
    lock.setName(name);
    return persist(lock);
  }
View Full Code Here


    }
   
    Query query = new Query(getKind(), directory.getKey())
      .addFilter("name", FilterOperator.EQUAL, name);
   
    Lock lock = getSingleObject(query);
    if (lock != null) {
      putLookupKey(lookupKey, lock.getKey());
    } else {
      putLookupKey(lookupKey, createNullLookupKey());
    }
   
    return lock;
View Full Code Here

TOP

Related Classes of fi.foyt.hibernate.gae.search.persistence.domainmodel.Lock

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.