/** * Return true if this relationship needs to maintain/update L2 cache. */ boolean isCacheNotifyRelationship() { return relationshipProperty != null && targetDescriptor.isBeanCaching(); }
/** * Return true if delete can use a single SQL statement. * <p> * This implies cascade delete does not continue depth wise and that this is no * associated L2 bean caching. */ public boolean isDeleteByStatement() { return persistListener == null && persistController == null && deleteRecurseSkippable && !isBeanCaching(); }
public boolean isManyPropCaching() { return isBeanCaching(); }
@Override public boolean isBeanCachePut() { return useBeanCache.isPut() && beanDescriptor.isBeanCaching(); }
@Override public boolean isBeanCacheGet() { return useBeanCache.isGet() && beanDescriptor.isBeanCaching(); }
public DLoadBaseContext(DLoadContext parent, BeanDescriptor<?> desc, String path, int defaultBatchSize, OrmQueryProperties queryProps) { this.parent = parent; this.serverName = parent.getEbeanServer().getName(); this.desc = desc; this.queryProps = queryProps; this.fullPath = parent.getFullPath(path); this.hitCache = parent.isBeanCacheGet() && desc.isBeanCaching(); this.objectGraphNode = parent.getObjectGraphNode(path); this.queryFetch = queryProps != null && queryProps.isQueryFetch(); this.firstBatchSize = initFirstBatchSize(defaultBatchSize, queryProps); this.secondaryBatchSize = initSecondaryBatchSize(defaultBatchSize, firstBatchSize, queryProps); }
/** * Return true if delete can use a single SQL statement. * <p> * This implies cascade delete does not continue depth wise and that this is no * associated L2 bean caching. */ public boolean isDeleteByStatement() { return persistListener == null && persistController == null && deleteRecurseSkippable && !isBeanCaching(); }
/** * Return true if this relationship needs to maintain/update L2 cache. */ boolean isCacheNotifyRelationship() { return relationshipProperty != null && targetDescriptor.isBeanCaching(); }
public boolean isManyPropCaching() { return isBeanCaching(); }
@Override public boolean isBeanCacheGet() { return useBeanCache.isGet() && beanDescriptor.isBeanCaching(); }
@Override public boolean isBeanCachePut() { return useBeanCache.isPut() && beanDescriptor.isBeanCaching(); }
return; if (!draft && Mode.LAZYLOAD_BEAN == mode && desc.isBeanCaching()) {
public DLoadBaseContext(DLoadContext parent, BeanDescriptor<?> desc, String path, int defaultBatchSize, OrmQueryProperties queryProps) { this.parent = parent; this.serverName = parent.getEbeanServer().getName(); this.desc = desc; this.queryProps = queryProps; this.fullPath = parent.getFullPath(path); this.hitCache = parent.isBeanCacheGet() && desc.isBeanCaching(); this.objectGraphNode = parent.getObjectGraphNode(path); this.queryFetch = queryProps != null && queryProps.isQueryFetch(); this.firstBatchSize = initFirstBatchSize(defaultBatchSize, queryProps); this.secondaryBatchSize = initSecondaryBatchSize(defaultBatchSize, firstBatchSize, queryProps); }
return; if (!draft && Mode.LAZYLOAD_BEAN == mode && desc.isBeanCaching()) {