T
- the type of EntityObjectpublic class DelegatingObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject> extends Object implements ObjectDaoInternal<T>
Constructor and Description |
---|
DelegatingObjectDaoInternal(ObjectDaoInternal<T> delegate) |
Modifier and Type | Method and Description |
---|---|
@NonNull List<T> |
findAll()
Find all objects currently persisted of a particular type.
|
@NonNull List<T> |
findAllSorted(String sortField)
Find all objects currently persisted of a particular type and sort results by named property.
|
@NonNull 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> @NonNull 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. |
@NonNull 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.ObjectDaoInternal
remove
in interface ObjectDao
remove
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public void removeEntity(T objectToRemove)
ObjectDaoInternal
removeEntity
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
@Deprecated public void refresh(com.atlassian.core.bean.EntityObject objectToRefresh)
refreshEntity(EntityObject)
instead.ObjectDaoInternal
refresh
in interface ObjectDao
refresh
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public void refreshEntity(T objectToRefresh)
ObjectDaoInternal
refreshEntity
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
@Deprecated public void replicate(Object objectToReplicate)
replicateEntity(EntityObject)
instead.ObjectDaoInternal
replicate
in interface ObjectDao
replicate
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public void replicateEntity(T objectToReplicate)
ObjectDaoInternal
replicateEntity
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public @NonNull List<T> findAll()
ObjectDaoInternal
findAll
in interface ObjectDao
findAll
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public @NonNull List<T> findAllSorted(String sortField)
ObjectDaoInternal
findAllSorted
in interface ObjectDao
findAllSorted
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.public @NonNull List<T> findAllSorted(String sortField, boolean cacheable, int offset, int maxResultCount)
ObjectDaoInternal
findAllSorted
in interface ObjectDao
findAllSorted
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 public <E> @NonNull PageResponse<E> findByClassIds(Iterable<Long> ids, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super E> filter)
findByClassIdsFiltered(Iterable, LimitedRequest, Predicate)
instead.ObjectDaoInternal
findByClassIds
in interface ObjectDao
findByClassIds
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 returningpublic @NonNull PageResponse<T> findByClassIdsFiltered(Iterable<Long> ids, LimitedRequest limitedRequest, Predicate<? super T> filter)
ObjectDaoInternal
findByClassIdsFiltered
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 ObjectDao
save
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
public void saveEntity(T objectToSave)
ObjectDaoInternal
saveEntity
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
objectToSave
- the object to save.public Class<T> getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
@Deprecated public void saveRaw(com.atlassian.core.bean.EntityObject objectToSave)
saveRawEntity(EntityObject)
instead.ObjectDaoInternal
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.
saveRaw
in interface ObjectDao
saveRaw
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
objectToSave
- the object to save.public void saveRawEntity(T objectToSave)
ObjectDaoInternal
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.
saveRawEntity
in interface ObjectDaoInternal<T extends com.atlassian.core.bean.EntityObject>
objectToSave
- the object to save.Copyright © 2003–2019 Atlassian. All rights reserved.