Package com.avaje.ebean.bean.PersistenceContext

Examples of com.avaje.ebean.bean.PersistenceContext.WithOption


    PersistenceContext context = null;
    if (t != null) {
      // first look in the persistence context
      context = t.getPersistenceContext();
      if (context != null) {
        WithOption o = context.getWithOption(beanDescriptor.getBeanType(), query.getId());
        if (o != null) {
          if (o.isDeleted()) {
            // Bean was previously deleted in the same transaction / persistence context
            return null;
          }
          // Return the entity bean instance from the persistence context
          return (T) o.getBean();
        }
      }
    }

    if (!beanDescriptor.calculateUseCache(query.isUseBeanCache())) {
View Full Code Here

TOP

Related Classes of com.avaje.ebean.bean.PersistenceContext.WithOption

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.