Class InMemoryBeanQueryContext.Builder<T>
java.lang.Object
org.apache.juneau.commons.beanquery.BeanQueryContext.Builder<T,InMemoryBeanQueryContext.Builder<T>>
org.apache.juneau.commons.beanquery.InMemoryBeanQueryContext.Builder<T>
- Type Parameters:
T- The row type.
- Enclosing class:
- InMemoryBeanQueryContext<T>
public static final class InMemoryBeanQueryContext.Builder<T>
extends BeanQueryContext.Builder<T,InMemoryBeanQueryContext.Builder<T>>
Builder for
InMemoryBeanQueryContext. See the class Javadoc for an example.-
Method Summary
Modifier and TypeMethodDescriptionSets how a declared column's value is read, replacing the bean property (or map key).build()Builds the immutable context.Sets a server-only filter applied to every session before the search.Methods inherited from class org.apache.juneau.commons.beanquery.BeanQueryContext.Builder
allowRegex, column, columnOperators, columns, countPolicy, declared, defaultLimit, exclude, maxExpressionDepth, maxLimit, maxSearchClauses, maxSearchLength, maxSortKeys, operators, regexTimeout, self
-
Method Details
-
accessor
Sets how a declared column's value is read, replacing the bean property (or map key).- Parameters:
column- The column name. Must be declared.value- The accessor. Must not benull . Exceptions it throws becomeBeanQueryExecutionExceptions.- Returns:
- This object.
-
guard
Sets a server-only filter applied to every session before the search. Rows it rejects are not counted inPage.total().- Parameters:
value- The guard, ornull for none.- Returns:
- This object.
-
build
Builds the immutable context.- Specified by:
buildin classBeanQueryContext.Builder<T,InMemoryBeanQueryContext.Builder<T>> - Returns:
- A new context.
- Throws:
IllegalArgumentException- If a bean column has neither a readable property nor an accessor.
-