public abstract class BambooHibernateObjectDao<T extends BambooObject> extends StatelessSessionHibernateDaoSupport implements com.atlassian.bamboo.persistence3.BambooObjectDao<T>
| Constructor and Description |
|---|
BambooHibernateObjectDao() |
| Modifier and Type | Method and Description |
|---|---|
<E extends T> |
countAll(Class<E> aClass) |
<E extends T> |
countWithRestriction(Class<E> aClass,
org.hibernate.criterion.Criterion restriction) |
void |
delete(T t) |
<E extends T> |
deleteAll(Collection<E> entities) |
<E extends T> |
execute(org.springframework.orm.hibernate3.HibernateCallback action) |
long |
executeCountQuery(String queryName)
Execute count-type query and returns result
|
int |
executeReturnInt(org.springframework.orm.hibernate3.HibernateCallback<? extends Number> callback) |
long |
executeReturnLong(org.springframework.orm.hibernate3.HibernateCallback<? extends Number> callback) |
<E extends T> |
findAll(Class<E> aClass) |
<E extends T> |
findById(long id,
Class<E> aClass) |
void |
save(T t) |
<E extends T> |
saveAll(Collection<E> entities) |
getCacheAwareHibernateTemplatepublic void save(@NotNull
T t)
save in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public <E extends T> void saveAll(@NotNull Collection<E> entities)
saveAll in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public void delete(@NotNull
T t)
delete in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public <E extends T> void deleteAll(@NotNull Collection<E> entities)
deleteAll in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>@NotNull public <E extends T> Collection<E> findAll(@NotNull Class<E> aClass)
findAll in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public <E extends T> long countAll(@NotNull Class<E> aClass)
countAll in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public <E extends T> long countWithRestriction(@NotNull Class<E> aClass, @NotNull org.hibernate.criterion.Criterion restriction)
countWithRestriction in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>@Nullable public <E extends T> E findById(long id, @NotNull Class<E> aClass)
findById in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>@Nullable public <E extends T> E execute(@NotNull org.springframework.orm.hibernate3.HibernateCallback action) throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessExceptionpublic int executeReturnInt(@NotNull
org.springframework.orm.hibernate3.HibernateCallback<? extends Number> callback)
executeReturnInt in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public long executeReturnLong(@NotNull
org.springframework.orm.hibernate3.HibernateCallback<? extends Number> callback)
executeReturnLong in interface com.atlassian.bamboo.persistence3.BambooObjectDao<T extends BambooObject>public long executeCountQuery(@NotNull
String queryName)
queryName - name of the named query to executeCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.