Interface SearchableDao
- All Known Implementing Classes:
HibernateSearchableDao
public interface SearchableDao
Provides access to
Searchable objects. Searchable is a marker interface over persistent classes (and is not in itself persistent).-
Method Summary
Modifier and TypeMethodDescriptionintFinds the count of all latest searchables.intgetCountOfLatestSearchables(Class<? extends Searchable> clazz) Finds the count of the latest searchables that implement the specified hibernate entity class.intgetCountOfLatestSearchables(String spaceKey) intgetCountOfLatestSearchables(String spaceKey, Class<? extends Searchable> clazz) getLatestSearchableHandles(Class<? extends Searchable> clazz) Finds a list of handles for the specified class.getLatestSearchableHandles(Class<? extends Searchable> clazz, Optional<String> spaceKey) Returns a list of latest searchable handles grouped by hibernate entity class.
-
Method Details
-
getLatestSearchableHandlesGroupedByType
List<List<HibernateHandle>> getLatestSearchableHandlesGroupedByType()Returns a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.- Returns:
- a list of latest searchable handles grouped by hibernate entity class. Each sublist is guaranteed to be one type.
- Since:
- 5.2
-
getLatestSearchableHandlesGroupedByType
- Parameters:
spaceKey- the key of a space- Since:
- 8.3.0
-
getLatestSearchableHandles
Finds a list of handles for the specified class.- Parameters:
clazz- a Hibernate entity class- Since:
- 5.2
-
getLatestSearchableHandles
List<HibernateHandle> getLatestSearchableHandles(Class<? extends Searchable> clazz, Optional<String> spaceKey) - Parameters:
clazz- a Hibernate entity classspaceKey- the key of a space- Since:
- 8.3.0
-
getCountOfLatestSearchables
int getCountOfLatestSearchables()Finds the count of all latest searchables.- Since:
- 5.2
-
getCountOfLatestSearchables
-
getCountOfLatestSearchables
Finds the count of the latest searchables that implement the specified hibernate entity class.- Parameters:
clazz- a hibernate entity class- Since:
- 5.2
-
getCountOfLatestSearchables
-