Interface SearchableDao
-
- All Known Implementing Classes:
HibernateSearchableDao
public interface SearchableDao
Provides access toSearchable
objects.Searchable
is a marker interface over persistent classes (and is not in itself persistent).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCountOfLatestSearchables()
Finds the count of all latest searchables.int
getCountOfLatestSearchables(Class<? extends Searchable> clazz)
Finds the count of the latest searchables that implement the specified hibernate entity class.int
getCountOfLatestSearchables(String spaceKey)
int
getCountOfLatestSearchables(String spaceKey, Class<? extends Searchable> clazz)
List<HibernateHandle>
getLatestSearchableHandles(Class<? extends Searchable> clazz)
Finds a list of handles for the specified class.List<HibernateHandle>
getLatestSearchableHandles(Class<? extends Searchable> clazz, Optional<String> spaceKey)
List<List<HibernateHandle>>
getLatestSearchableHandlesGroupedByType()
Returns a list of latest searchable handles grouped by hibernate entity class.List<List<HibernateHandle>>
getLatestSearchableHandlesGroupedByType(Optional<String> spaceKey)
-
-
-
Method Detail
-
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
List<List<HibernateHandle>> getLatestSearchableHandlesGroupedByType(Optional<String> spaceKey)
- Parameters:
spaceKey
- the key of a space- Since:
- 8.3.0
-
getLatestSearchableHandles
List<HibernateHandle> getLatestSearchableHandles(Class<? extends Searchable> clazz)
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
int getCountOfLatestSearchables(String spaceKey)
-
getCountOfLatestSearchables
int getCountOfLatestSearchables(Class<? extends Searchable> clazz)
Finds the count of the latest searchables that implement the specified hibernate entity class.- Parameters:
clazz
- a hibernate entity class- Since:
- 5.2
-
getCountOfLatestSearchables
int getCountOfLatestSearchables(String spaceKey, Class<? extends Searchable> clazz)
-
-