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 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
      • 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)