Interface AnyDAO<A extends Any<?>>

All Superinterfaces:
DAO<A>
All Known Subinterfaces:
AnyObjectDAO, AnyObjectRepo, AnyObjectRepo, GroupDAO, GroupRepo, GroupRepo, UserDAO, UserRepo, UserRepo

public interface AnyDAO<A extends Any<?>> extends DAO<A>
  • Field Details

  • Method Details

    • findByKeys

      List<A> findByKeys(List<String> keys)
    • findLastChange

      Optional<OffsetDateTime> findLastChange(String key)
    • authFind

      A authFind(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 schema
      value - derived attribute value
      ignoreCaseMatch - whether comparison for string values should take case into account or not
      Returns:
      list of any objects
    • findByResourcesContaining

      List<A> findByResourcesContaining(ExternalResource resource)
    • findAll

      org.springframework.data.domain.Page<? extends A> findAll(org.springframework.data.domain.Pageable pageable)
    • getAllMatchingCond

      default SearchCond getAllMatchingCond()
      Returns:
      the search condition to match all entities
    • findAllowedSchemas

      <S extends Schema> AllowedSchemas<S> findAllowedSchemas(A any, Class<S> reference)
    • findDynRealms

      List<String> findDynRealms(String key)
    • findAllResourceKeys

      Collection<String> findAllResourceKeys(String key)