Interface AnyTypeDao

  • All Known Subinterfaces:
    ExporterAnyTypeDao
    All Known Implementing Classes:
    HibernateAnyTypeDao

    @Deprecated
    public interface AnyTypeDao
    Deprecated.
    since 7.17.0. Will be moved to internal package in the future.
    DAO for loading persistent objects of various types
    • Method Detail

      • findByHandle

        Object findByHandle​(Handle handle)
        Deprecated.
        Find a persistent object by its handle.
        Parameters:
        handle - the handle
        Returns:
        a persistent object by its handle.
      • getByIdAndType

        Object getByIdAndType​(long id,
                              Class type)
        Deprecated.
        Find a persistent object by its id and type.
        Returns:
        a persistent object by its handle.
      • findByIdsAndClassName

        List findByIdsAndClassName​(List<Long> ids,
                                   String className)
        Deprecated.
        Find a list of objects from the same persistent class.
        Parameters:
        className - the persistent class's fully qualified class name.
      • findAllPersistentObjectsHandles

        @Deprecated
        List<Handle> findAllPersistentObjectsHandles()
        Deprecated.
        since 7.14
        Finds handles for all persistent objects.
        Returns:
        handles for all persistent objects.
      • findAllPersistentObjects

        @Deprecated
        List findAllPersistentObjects()
        Deprecated.
        since 7.14. No. Just no.
        Finds all persistent objects.
        Returns:
        all persistent objects.
      • removeAllPersistentObjectsByType

        @Deprecated
        <T> int removeAllPersistentObjectsByType​(Class<T> type)
        Remove all of the persistent objects of the specified type
        Parameters:
        type - the class of the persistent objects to remove
        Returns:
        the number of objects deleted.