/** * Selects {@link ShadowScope#COMMIT_DEEP} for Shadow queries. * <br/><br/> * * Read about query scopes in {@link Javers#findShadows(JqlQuery)} javadoc. * * @see <a href="http://javers.org/documentation/jql-examples/">http://javers.org/documentation/jql-examples</a> * @since 3.5 */ public QueryBuilder withScopeCommitDeep() { return withShadowScope(COMMIT_DEEP); }
/** * Selects {@link ShadowScope#DEEP_PLUS} * with <code></cpce>maxGapsToFill</code> defaulted to <b>10</b>. * <br/><br/> * * Read more about query scopes in {@link Javers#findShadows(JqlQuery)} javadoc. * <br/><br/> * * Only for Shadow queries. * * @see <a href="http://javers.org/documentation/jql-examples/">http://javers.org/documentation/jql-examples</a> * @since 3.5 */ public QueryBuilder withScopeDeepPlus() { return withShadowScope(DEEP_PLUS); }
/** * Selects {@link ShadowScope#DEEP_PLUS} with given <code>maxGapsToFill</code>. * <br/><br/> * * Read more about Shadow query <b>scopes, profiling, and runtime statistics</b> * in {@link Javers#findShadows(JqlQuery)} javadoc. * <br/><br/> * * Only for Shadow queries. * * @param maxGapsToFill Limits the number of referenced entity Shadows to be eagerly loaded. * The limit is global for a query. When it is exceeded, * references to other entities are nulled. Collections of entities may not be fully loaded. * @see <a href="http://javers.org/documentation/jql-examples/">http://javers.org/documentation/jql-examples</a> * @since 3.5 */ public QueryBuilder withScopeDeepPlus(int maxGapsToFill) { this.maxGapsToFill = maxGapsToFill; return withShadowScope(DEEP_PLUS); }
/** * renamed to {@link #withScopeCommitDeep()} * @deprecated */ @Deprecated public QueryBuilder withShadowScopeDeep() { return withShadowScope(COMMIT_DEEP); }