Constructor and Description |
---|
ScopeBuilder(Class<T> modelClass,
String[] scopes) |
Modifier and Type | Method and Description |
---|---|
<T extends Model> |
all()
Use in case the scopes define all criteria you need.
|
ScopeBuilder<T> |
scope(String scope) |
<T extends Model> |
where(String subquery,
Object... params)
Applies additional criteria to scopes defined in the model.
|
public <T extends Model> LazyList<T> where(String subquery, Object... params)
subquery
- additional criteria.params
- dynamic parameters for the subquery. Similar to Model.where(String, Object...)
.public <T extends Model> LazyList<T> all()
public ScopeBuilder<T> scope(String scope)
Copyright © 2019 JavaLite. All rights reserved.