Class DelegatingObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>

    • Constructor Detail

      • DelegatingObjectDaoInternal

        public DelegatingObjectDaoInternal​(ObjectDaoInternal<T> delegate)
    • Method Detail

      • removeEntity

        public void removeEntity​(T objectToRemove)
        Description copied from interface: ObjectDaoInternal
        Remove object from persistence.
        Specified by:
        removeEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
      • refreshEntity

        public void refreshEntity​(T objectToRefresh)
        Description copied from interface: ObjectDaoInternal
        Refreshes the object again with the fresh data from db.
        Specified by:
        refreshEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
      • replicateEntity

        public void replicateEntity​(T objectToReplicate)
        Description copied from interface: ObjectDaoInternal
        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.
        Specified by:
        replicateEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
      • findAllSorted

        public @NonNull List<T> findAllSorted​(String sortField)
        Description copied from interface: ObjectDaoInternal
        Find all objects currently persisted of a particular type and sort results by named property.
        Specified by:
        findAllSorted in interface ObjectDao
        Specified by:
        findAllSorted in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        Parameters:
        sortField - the name of the property to be sorted on. This should be null if no sorting is required.
      • findAllSorted

        public @NonNull List<T> findAllSorted​(String sortField,
                                              boolean cacheable,
                                              int offset,
                                              int maxResultCount)
        Description copied from interface: ObjectDaoInternal
        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.
        Specified by:
        findAllSorted in interface ObjectDao
        Specified by:
        findAllSorted in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        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.
      • findByClassIdsFiltered

        public @NonNull PageResponse<T> findByClassIdsFiltered​(Iterable<Long> ids,
                                                               LimitedRequest limitedRequest,
                                                               Predicate<? super T> filter)
        Description copied from interface: ObjectDaoInternal
        Find a list of objects from the same persistent class.
        Specified by:
        findByClassIdsFiltered in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        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
      • saveEntity

        public void saveEntity​(T objectToSave)
        Description copied from interface: ObjectDaoInternal
        Saves the given object to the database.
        Specified by:
        saveEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        Parameters:
        objectToSave - the object to save.
      • saveRaw

        @Deprecated
        public void saveRaw​(com.atlassian.core.bean.EntityObject objectToSave)
        Deprecated.
        since 6.10.0. Use saveRawEntity(EntityObject) instead.
        Description copied from interface: ObjectDaoInternal
        Saves the object without updating modification data.

        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.

        Specified by:
        saveRaw in interface ObjectDao
        Specified by:
        saveRaw in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        Parameters:
        objectToSave - the object to save.
      • saveRawEntity

        public void saveRawEntity​(T objectToSave)
        Description copied from interface: ObjectDaoInternal
        Saves the object without updating modification daa.

        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.

        Specified by:
        saveRawEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
        Parameters:
        objectToSave - the object to save.