Interface AnyDAO<A extends Any<?>>
-
- All Superinterfaces:
DAO<A>
- All Known Subinterfaces:
AnyObjectDAO
,GroupDAO
,UserDAO
- All Known Implementing Classes:
AbstractAnyDAO
,JPAAnyObjectDAO
,JPAGroupDAO
,JPAJSONAnyObjectDAO
,JPAJSONGroupDAO
,JPAJSONUserDAO
,JPAUserDAO
public interface AnyDAO<A extends Any<?>> extends DAO<A>
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PAGE_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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>
AllowedSchemas<S>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)
OffsetDateTime
findLastChange(String key)
SearchCond
getAllMatchingCond()
A
save(A any)
-
-
-
Field Detail
-
DEFAULT_PAGE_SIZE
static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findLastChange
OffsetDateTime findLastChange(String key)
-
findByPlainAttrValue
List<A> findByPlainAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
-
findByPlainAttrUniqueValue
Optional<A> findByPlainAttrUniqueValue(PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
-
findByDerAttrValue
List<A> findByDerAttrValue(DerSchema schema, String value, boolean ignoreCaseMatch)
Find any objects by derived attribute value. This method could fail if one or more string literals contained into the derived attribute value provided derive from identifier (schema key) replacement. When you are going to specify a derived attribute expression you must be quite sure that string literals used to build the expression cannot be found into the attribute values used to replace attribute schema keys used as identifiers.- Parameters:
schema
- derived schemavalue
- derived attribute valueignoreCaseMatch
- whether comparison for string values should take case into account or not- Returns:
- list of any objects
-
findByResource
List<A> findByResource(ExternalResource resource)
-
getAllMatchingCond
SearchCond getAllMatchingCond()
- Returns:
- the search condition to match all entities
-
count
int count()
- Returns:
- the total number of any objects of type
AnyDAO
-
findAll
List<A> findAll(int page, int itemsPerPage)
Find any objects without any limitation, according to given page and items per page.- Parameters:
page
- search result pageitemsPerPage
- items per search result page- Returns:
- any objects of type
AnyDAO
matching the provided conditions
-
findAllKeys
List<String> findAllKeys(int page, int itemsPerPage)
Find any objects' keys without any limitation, according to given page and items per page.- Parameters:
page
- search result pageitemsPerPage
- items per search result page- Returns:
- any objects' keys matching the provided conditions
-
findAllowedSchemas
<S extends Schema> AllowedSchemas<S> findAllowedSchemas(A any, Class<S> reference)
-
delete
void delete(String key)
-
delete
void delete(A any)
-
findAllResourceKeys
Collection<String> findAllResourceKeys(String key)
-
-