Package org.javalite.activejdbc
Class ScopeBuilder<T extends Model>
java.lang.Object
org.javalite.activejdbc.ScopeBuilder<T>
- Author:
- igor on 4/7/18.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ScopeBuilder
-
-
Method Details
-
where
Applies additional criteria to scopes defined in the model.- Parameters:
subquery
- additional criteria.params
- dynamic parameters for the subquery. Similar toModel.where(String, Object...)
.- Returns:
- a list of records filtered by all supplied scopes as well as additional criteria.
-
all
Use in case the scopes define all criteria you need.- Returns:
- all instances of models according to defined scope filters.
-
scope
-