Package com.atlassian.bamboo.bandana
Class BandanaItemDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.bandana.BandanaItemDaoImpl
- All Implemented Interfaces:
BandanaItemDao
,org.springframework.beans.factory.InitializingBean
public class BandanaItemDaoImpl
extends org.springframework.orm.hibernate5.support.HibernateDaoSupport
implements BandanaItemDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<BandanaItem>
findBandanaItems
(@NotNull BambooBandanaContext bandanaContext) @NotNull Collection<String>
findBandanaKeys
(@NotNull BambooBandanaContext bandanaContext) @NotNull Collection<BandanaItem>
getBandanaItem
(@NotNull BambooBandanaContext bandanaContext, String key) void
remove
(BambooBandanaContext bandanaContext, String key) void
removeAllFromContext
(@NotNull BambooBandanaContext bandanaContext) void
save
(@NotNull BandanaItem bandanaItem) void
saveOrUpdate
(@NotNull BambooBandanaContext bandanaContext, String key, String xStreamData) Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
BandanaItemDaoImpl
public BandanaItemDaoImpl()
-
-
Method Details
-
getBandanaItem
public BandanaItem getBandanaItem(@NotNull @NotNull BambooBandanaContext bandanaContext, String key) - Specified by:
getBandanaItem
in interfaceBandanaItemDao
-
findBandanaItems
@NotNull public @NotNull Collection<BandanaItem> findBandanaItems(@NotNull @NotNull BambooBandanaContext bandanaContext) - Specified by:
findBandanaItems
in interfaceBandanaItemDao
-
findBandanaKeys
@NotNull public @NotNull Collection<String> findBandanaKeys(@NotNull @NotNull BambooBandanaContext bandanaContext) - Specified by:
findBandanaKeys
in interfaceBandanaItemDao
-
getAllBandanaItems
- Specified by:
getAllBandanaItems
in interfaceBandanaItemDao
-
save
- Specified by:
save
in interfaceBandanaItemDao
-
saveOrUpdate
public void saveOrUpdate(@NotNull @NotNull BambooBandanaContext bandanaContext, String key, String xStreamData) - Specified by:
saveOrUpdate
in interfaceBandanaItemDao
-
removeAllFromContext
- Specified by:
removeAllFromContext
in interfaceBandanaItemDao
-
remove
- Specified by:
remove
in interfaceBandanaItemDao
-