/** * Optimise the draft query fetching any draftable element relationships. */ public void draftQueryOptimise(Query<T> query) { // use per query PersistenceContext to ensure fresh beans loaded query.setPersistenceContextScope(PersistenceContextScope.QUERY); draftHelp.draftQueryOptimise(query); }
/** * Reset properties on the draft bean based on @DraftDirty and @DraftReset. */ public boolean draftReset(T draftBean) { return draftHelp.draftReset(draftBean); }
public T publish(T draftBean, T liveBean) { return draftHelp.publish(draftBean, liveBean); }
public BeanDescriptorDraftHelp(BeanDescriptor<T> desc) { this.desc = desc; this.draftDirty = desc.getDraftDirty(); this.resetProperties = resetProperties(); }
this.cacheHelp = new BeanDescriptorCacheHelp<>(this, owner.getCacheManager(), deploy.getCacheOptions(), cacheSharableBeans, propertiesOneImported); this.jsonHelp = new BeanDescriptorJsonHelp<>(this); this.draftHelp = new BeanDescriptorDraftHelp<>(this);
public BeanDescriptorDraftHelp(BeanDescriptor<T> desc) { this.desc = desc; this.draftDirty = desc.getDraftDirty(); this.resetProperties = resetProperties(); }
this.cacheHelp = new BeanDescriptorCacheHelp<>(this, owner.getCacheManager(), deploy.getCacheOptions(), cacheSharableBeans, propertiesOneImported); this.jsonHelp = new BeanDescriptorJsonHelp<>(this); this.draftHelp = new BeanDescriptorDraftHelp<>(this);
/** * Optimise the draft query fetching any draftable element relationships. */ public void draftQueryOptimise(Query<T> query) { // use per query PersistenceContext to ensure fresh beans loaded query.setPersistenceContextScope(PersistenceContextScope.QUERY); draftHelp.draftQueryOptimise(query); }
/** * Reset properties on the draft bean based on @DraftDirty and @DraftReset. */ public boolean draftReset(T draftBean) { return draftHelp.draftReset(draftBean); }
public T publish(T draftBean, T liveBean) { return draftHelp.publish(draftBean, liveBean); }