Package | Description |
---|---|
io.stallion.dataAccess | |
io.stallion.dataAccess.db | |
io.stallion.dataAccess.file | |
io.stallion.dataAccess.filtering | |
io.stallion.restfulEndpoints |
Modifier and Type | Method and Description |
---|---|
default FilterChain<T> |
ModelController.anyOf(List<String>... filters)
Short-cut for filterChain().andAnyOf(["someField", "value"], ["otherField", "anotherValue"]);
Finds all items that match any of the criteria
|
default FilterChain<T> |
ModelController.anyOf(Or... ors)
Short-cut for filterChain().andAnyOf(Or("someField", "someValue"), Or("someField", "someValue"));
Finds all items that match any of the criteria.
|
FilterChain<T> |
StandardModelController.filter(String name,
Object value) |
FilterChain<T> |
ReadOnlyWrapper.filter(String name,
Object value) |
FilterChain<T> |
ModelController.filter(String name,
Object value)
Create a new FilterChain and set an initial filter whereby
the field @name is equal to @value
|
FilterChain<T> |
StandardModelController.filter(String name,
Object value,
String op) |
FilterChain<T> |
ReadOnlyWrapper.filter(String name,
Object value,
String op) |
FilterChain<T> |
ModelController.filter(String name,
Object value,
String op)
Create a new FilterChain and initialize with an initial filter.
|
FilterChain<T> |
StandardModelController.filterBy(String name,
Object value,
FilterOperator op) |
FilterChain<T> |
ReadOnlyWrapper.filterBy(String name,
Object value,
FilterOperator op) |
FilterChain<T> |
ModelController.filterBy(String name,
Object value,
FilterOperator op)
Create a new FilterChain and initialize with an initial filter.
|
abstract FilterChain<T> |
Stash.filterByKey(String key,
Object lookupValue)
Create a new filterChain, restricting it to items matching the lookupValue for the key
|
FilterChain<T> |
StandardModelController.filterByKey(String keyName,
Object value) |
FilterChain<T> |
ReadOnlyWrapper.filterByKey(String keyName,
Object value) |
FilterChain<T> |
PartialStash.filterByKey(String key,
Object lookupValue) |
FilterChain<T> |
NoStash.filterByKey(String key,
Object lookupValue) |
FilterChain<T> |
ModelController.filterByKey(String keyName,
Object value)
Instantiate a filter chain and start by filtering on an index/keyed field.
|
FilterChain<T> |
LocalMemoryStash.filterByKey(String keyName,
Object value) |
abstract FilterChain<T> |
Stash.filterChain()
Create a new FilterChain for this stash
|
FilterChain<T> |
StandardModelController.filterChain() |
FilterChain<T> |
ReadOnlyWrapper.filterChain() |
FilterChain<T> |
Persister.filterChain() |
FilterChain<T> |
PartialStash.filterChain() |
FilterChain<T> |
NoStash.filterChain() |
FilterChain<T> |
ModelController.filterChain()
Create a new FilterChain instance for this controller.
|
FilterChain<T> |
LocalMemoryStash.filterChain() |
FilterChain<T> |
DummyPersister.filterChain() |
abstract FilterChain<T> |
Stash.filterChain(List<T> subset)
Create a new filter chain using a subset of items
|
FilterChain<T> |
PartialStash.filterChain(List<T> subset) |
FilterChain<T> |
NoStash.filterChain(List<T> subset) |
FilterChain<T> |
LocalMemoryStash.filterChain(List<T> subset) |
default FilterChain<T> |
ModelController.find(Map<String,Object> where)
Short-cut for applying filter(name, value) for every key-value pair in the dictionary.
|
default FilterChain<T> |
ModelController.search(String value,
String... fields)
Searches for @value in all @fields, using a case-insensitive
string contains search.
|
Modifier and Type | Method and Description |
---|---|
FilterChain<T> |
DbPersister.filterChain() |
Modifier and Type | Method and Description |
---|---|
FilterChain<T> |
FilePersisterBase.filterChain() |
Modifier and Type | Class and Description |
---|---|
class |
MySqlFilterChain<T extends Model>
A filter chain that generates a MySQL query, rather than operating on
an in memory datastructure
|
Modifier and Type | Method and Description |
---|---|
FilterChain<T> |
FilterChain.andAnyOf(List<String>... tuples) |
FilterChain<T> |
FilterChain.andAnyOf(Map<String,Object> allowedMatches) |
FilterChain<T> |
FilterChain.andAnyOf(Or... ors) |
protected FilterChain<T> |
FilterChain.cloneChainAndAddOperation(io.stallion.dataAccess.filtering.FilterOperation operation) |
FilterChain |
FilterChain.exclude(String name,
Object value)
Excludes all matching items instead of including them.
|
FilterChain |
FilterChain.exclude(String name,
Object value,
String op)
Excludes all matching items instead of including them.
|
FilterChain<T> |
FilterChain.excludeAnyOf(Or... ors) |
FilterChain |
FilterChain.excludeBy(String name,
Object value,
FilterOperator op)
Excludes all matching items instead of including them.
|
FilterChain<T> |
FilterChain.filter(String name,
Comparable value)
Do a basic equality filter.
|
FilterChain<T> |
FilterChain.filter(String name,
Comparable value,
String op) |
FilterChain<T> |
FilterChain.filter(String name,
Object val)
Do a basic equality filter
|
FilterChain<T> |
FilterChain.filter(String name,
Object value,
String op)
Add a filter to the chain
|
FilterChain<T> |
FilterChain.filterBy(String name,
Comparable value,
FilterOperator op)
Add a filter to the chain with a custom operator
|
FilterChain<T> |
FilterChain.filterBy(String name,
Object value,
FilterOperator op)
Add a filter to the chain with a custom operator
|
FilterChain<T> |
FilterChain.includeDeleted() |
protected FilterChain<T> |
MySqlFilterChain.newCopy() |
protected FilterChain<T> |
FilterChain.newCopy()
Create a copy this filter chain.
|
FilterChain<T> |
FilterChain.search(String value,
String... fields)
Searches for @value in all @fields, using a case-insensitive
string contains search.
|
protected FilterChain<T> |
FilterChain.setIncludeDeleted(Boolean includeDeleted) |
FilterChain<T> |
FilterChain.sort(String fieldName,
String direction)
Adds a sort direction the filter chain response.
|
FilterChain<T> |
FilterChain.sortBy(String fieldName,
SortDirection direction)
Adds a sort direction the filter chain response.
|
Constructor and Description |
---|
FilterChain(FilterChain chain,
LocalMemoryStash<T> stash) |
MySqlFilterChain(String table,
FilterChain chain) |
Modifier and Type | Method and Description |
---|---|
FilterChain<T> |
QueryToPager.chain() |
Constructor and Description |
---|
QueryToPager(IRequest request,
ModelController<T> controller,
FilterChain<T> chain) |
Copyright © 2016. All rights reserved.