public interface AnyDAO<A extends Any<?>> extends DAO<A>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PAGE_SIZE |
Modifier and Type | Method and Description |
---|---|
A |
authFind(String key) |
int |
count() |
void |
delete(A any) |
void |
delete(String key) |
A |
find(String key) |
List<A> |
findAll(int page,
int itemsPerPage)
Find any objects without any limitation, according to given page and items per page.
|
List<String> |
findAllKeys(int page,
int itemsPerPage)
Find any objects' keys without any limitation, according to given page and items per page.
|
<S extends Schema> |
findAllowedSchemas(A any,
Class<S> reference) |
Collection<String> |
findAllResourceKeys(String key) |
List<A> |
findByDerAttrValue(DerSchema schema,
String value,
boolean ignoreCaseMatch)
Find any objects by derived attribute value.
|
List<A> |
findByKeys(List<String> keys) |
Optional<A> |
findByPlainAttrUniqueValue(PlainSchema schema,
PlainAttrUniqueValue attrUniqueValue,
boolean ignoreCaseMatch) |
List<A> |
findByPlainAttrValue(PlainSchema schema,
PlainAttrValue attrValue,
boolean ignoreCaseMatch) |
List<A> |
findByResource(ExternalResource resource) |
List<String> |
findDynRealms(String key) |
String |
findKey(String name) |
Date |
findLastChange(String key) |
SearchCond |
getAllMatchingCond() |
A |
save(A any) |
static final int DEFAULT_PAGE_SIZE
List<A> findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
Optional<A> findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
List<A> findByDerAttrValue(DerSchema schema, String value, boolean ignoreCaseMatch)
schema
- derived schemavalue
- derived attribute valueignoreCaseMatch
- whether comparison for string values should take case into account or notList<A> findByResource(ExternalResource resource)
SearchCond getAllMatchingCond()
int count()
A
List<A> findAll(int page, int itemsPerPage)
page
- search result pageitemsPerPage
- items per search result pageA
matching the provided conditionsList<String> findAllKeys(int page, int itemsPerPage)
page
- search result pageitemsPerPage
- items per search result page<S extends Schema> AllowedSchemas<S> findAllowedSchemas(A any, Class<S> reference)
void delete(String key)
void delete(A any)
Collection<String> findAllResourceKeys(String key)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.