Interface ObjectDao

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      @NonNull List findAll()
      Deprecated.
      Find all objects currently persisted of a particular type.
      @NonNull List findAllSorted​(String sortField)
      Deprecated.
      Find all objects currently persisted of a particular type and sort results by named property.
      @NonNull List findAllSorted​(String sortField, boolean cacheable, int offset, int maxResultCount)
      Deprecated.
      Find all objects currently persisted of a particular type and sort results by named property.
      <T> @NonNull PageResponse<T> findByClassIds​(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super T> filter)
      Deprecated.
      Find a list of objects from the same persistent class.
      Class getPersistentClass()
      Deprecated.
       
      void refresh​(com.atlassian.core.bean.EntityObject objectToRefresh)
      Deprecated.
      since 6.10.0.
      void remove​(com.atlassian.core.bean.EntityObject object)
      Deprecated.
      since 6.10.0.
      void replicate​(Object objectToReplicate)
      Deprecated.
      since 6.10.0.
      void save​(com.atlassian.core.bean.EntityObject objectToSave)
      Deprecated.
      since 6.10.0.
      void saveRaw​(com.atlassian.core.bean.EntityObject objectToSave)
      Deprecated.
      since 6.10.0.
    • Method Detail

      • remove

        @Deprecated
        @Transactional
        void remove​(com.atlassian.core.bean.EntityObject object)
        Deprecated.
        since 6.10.0. Use ObjectDaoInternal#removeEntity(EntityObject) instead.
        Remove object from persistence.
      • refresh

        @Deprecated
        @Transactional
        void refresh​(com.atlassian.core.bean.EntityObject objectToRefresh)
        Deprecated.
        since 6.10.0. Use ObjectDaoInternal#refreshEntity(EntityObject) instead.
        Refreshes the object again with the fresh data from db.
      • replicate

        @Deprecated
        @Transactional
        void replicate​(Object objectToReplicate)
        Deprecated.
        since 6.10.0. Use ObjectDaoInternal#replicateEntity(EntityObject) instead.
        Replicate the object. Replication does not generate a new id if the object does not exist in database and it overwrites the database row if the object already exists in database.
      • findAll

        @NonNull List findAll()
        Deprecated.
        Find all objects currently persisted of a particular type.
      • findAllSorted

        @NonNull List findAllSorted​(String sortField)
        Deprecated.
        Find all objects currently persisted of a particular type and sort results by named property.
        Parameters:
        sortField - the name of the property to be sorted on. This should be null if no sorting is required.
      • findAllSorted

        @NonNull List findAllSorted​(String sortField,
                                    boolean cacheable,
                                    int offset,
                                    int maxResultCount)
        Deprecated.
        Find all objects currently persisted of a particular type and sort results by named property. This version of the method allows more control over the query.
        Parameters:
        sortField - the name of the property to be sorted on. This should be null if no sorting is required.
        cacheable - control whether the results should be cached
        offset - the index of the first result to be returned
        maxResultCount - the maximum number of results required. Use -1 to specify no limit.
      • findByClassIds

        <T> @NonNull PageResponse<T> findByClassIds​(Iterable<Long> ids,
                                                    LimitedRequest limitedRequest,
                                                    com.google.common.base.Predicate<? super T> filter)
        Deprecated.
        Find a list of objects from the same persistent class.
        Type Parameters:
        T - the type of entity to return
        Parameters:
        ids - - the ids of the entities to find
        limitedRequest - the pagination request defining the page size to fetch
        filter - a predicate to do in memory filtering of the result set before returning
        Returns:
        a list of objects matching the filters
      • save

        @Deprecated
        @Transactional
        void save​(com.atlassian.core.bean.EntityObject objectToSave)
        Deprecated.
        since 6.10.0. Use ObjectDaoInternal#saveEntity(EntityObject) instead.
      • getPersistentClass

        @Transactional(readOnly=true,
                       propagation=SUPPORTS)
        Class getPersistentClass()
        Deprecated.
      • saveRaw

        @Deprecated
        @Transactional
        void saveRaw​(com.atlassian.core.bean.EntityObject objectToSave)
        Deprecated.
        since 6.10.0. Use ObjectDaoInternal#saveRawEntity(EntityObject) instead.
        saves the object. if the object is new, this won't set the creation date on the object. if it already exists, then it won't set the date that it was updated.
        Parameters:
        objectToSave -