T - the type of EntityObjectpublic class DelegatingObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject> extends Object implements ObjectDaoInternal<T>
NON_CACHEABLE| Constructor and Description |
|---|
DelegatingObjectDaoInternal(ObjectDaoInternal<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAll()
Find all objects currently persisted of a particular type.
|
List<T> |
findAllSorted(String sortField)
Find all objects currently persisted of a particular type and sort results by named property.
|
List<T> |
findAllSorted(String sortField,
boolean cacheable,
int offset,
int maxResultCount)
Find all objects currently persisted of a particular type and sort results by named property.
|
<E> PageResponse<E> |
findByClassIds(Iterable<Long> ids,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super E> filter)
Deprecated.
since 6.10.0. Use
findByClassIdsFiltered(Iterable, LimitedRequest, Predicate) instead. |
PageResponse<T> |
findByClassIdsFiltered(Iterable<Long> ids,
LimitedRequest limitedRequest,
Predicate<? super T> filter)
Find a list of objects from the same persistent class.
|
Class<T> |
getPersistentClass()
Gets the type of
EntityObject this Dao works with. |
void |
refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
Deprecated.
since 6.10.0. Use
refreshEntity(EntityObject) instead. |
void |
refreshEntity(T objectToRefresh)
Refreshes the object again with the fresh data from db.
|
void |
remove(com.atlassian.core.bean.EntityObject objectToRemove)
Deprecated.
since 6.10.0. Use
removeEntity(EntityObject) instead. |
void |
removeEntity(T objectToRemove)
Remove object from persistence.
|
void |
replicate(Object objectToReplicate)
Deprecated.
since 6.10.0. Use
replicateEntity(EntityObject) instead. |
void |
replicateEntity(T objectToReplicate)
Replicate the object.
|
void |
save(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveEntity(EntityObject) instead. |
void |
saveEntity(T objectToSave)
Saves the given object to the database.
|
void |
saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
Deprecated.
since 6.10.0. Use
saveRawEntity(EntityObject) instead. |
void |
saveRawEntity(T objectToSave)
Saves the object without updating modification daa.
|
public DelegatingObjectDaoInternal(ObjectDaoInternal<T> delegate)
@Deprecated public void remove(com.atlassian.core.bean.EntityObject objectToRemove)
removeEntity(EntityObject) instead.ObjectDaoInternalremove in interface ObjectDaoremove in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>public void removeEntity(T objectToRemove)
ObjectDaoInternalremoveEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>@Deprecated public void refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
refreshEntity(EntityObject) instead.ObjectDaoInternalrefresh in interface ObjectDaorefresh in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>public void refreshEntity(T objectToRefresh)
ObjectDaoInternalrefreshEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>@Deprecated public void replicate(Object objectToReplicate)
replicateEntity(EntityObject) instead.ObjectDaoInternalreplicate in interface ObjectDaoreplicate in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>public void replicateEntity(T objectToReplicate)
ObjectDaoInternalreplicateEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>@Nonnull public List<T> findAll()
ObjectDaoInternalfindAll in interface ObjectDaofindAll in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>@Nonnull public List<T> findAllSorted(String sortField)
ObjectDaoInternalfindAllSorted in interface ObjectDaofindAllSorted in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>sortField - the name of the property to be sorted on. This should be null if no sorting is required.@Nonnull public List<T> findAllSorted(String sortField, boolean cacheable, int offset, int maxResultCount)
ObjectDaoInternalfindAllSorted in interface ObjectDaofindAllSorted in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>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 cachedoffset - the index of the first result to be returnedmaxResultCount - the maximum number of results required. Use -1 to specify no limit.@Deprecated @Nonnull public <E> PageResponse<E> findByClassIds(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super E> filter)
findByClassIdsFiltered(Iterable, LimitedRequest, Predicate) instead.ObjectDaoInternalfindByClassIds in interface ObjectDaofindByClassIds in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>E - the type of entity to returnids - - the ids of the entities to findlimitedRequest - the pagination request defining the page size to fetchfilter - a predicate to do in memory filtering of the result set before returning@Nonnull public PageResponse<T> findByClassIdsFiltered(Iterable<Long> ids, LimitedRequest limitedRequest, Predicate<? super T> filter)
ObjectDaoInternalfindByClassIdsFiltered in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>ids - - the ids of the entities to findlimitedRequest - the pagination request defining the page size to fetchfilter - a predicate to do in memory filtering of the result set before returning@Deprecated public void save(com.atlassian.core.bean.EntityObject objectToSave)
saveEntity(EntityObject) instead.save in interface ObjectDaosave in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>public void saveEntity(T objectToSave)
ObjectDaoInternalsaveEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>objectToSave - the object to save.public Class<T> getPersistentClass()
ObjectDaoInternalEntityObject this Dao works with.getPersistentClass in interface ObjectDaogetPersistentClass in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>@Deprecated public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saveRawEntity(EntityObject) instead.ObjectDaoInternalIf 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.
saveRaw in interface ObjectDaosaveRaw in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>objectToSave - the object to save.public void saveRawEntity(T objectToSave)
ObjectDaoInternalIf 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.
saveRawEntity in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>objectToSave - the object to save.Copyright © 2003–2021 Atlassian. All rights reserved.