Class EnvironmentCustomConfigHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.deployments.configuration.persistence.EnvironmentCustomConfigHibernateDao
- All Implemented Interfaces:
EnvironmentCustomConfigDao
,org.springframework.beans.factory.InitializingBean
public class EnvironmentCustomConfigHibernateDao
extends StatelessSessionHibernateDaoSupport
implements EnvironmentCustomConfigDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(@NotNull EnvironmentCustomConfig environmentCustomConfig) @NotNull List<EnvironmentCustomConfig>
findAll
(int firstResult, int maxResults) Get paginated list of all custom configurations.@Nullable EnvironmentCustomConfig
findById
(long environmentId) Gets specific Environment custom configuration by environment ID.long
getCount()
Count all custom configurations.void
saveOrUpdate
(@NotNull EnvironmentCustomConfig environmentCustomConfig) Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
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
-
EnvironmentCustomConfigHibernateDao
public EnvironmentCustomConfigHibernateDao()
-
-
Method Details
-
findById
Description copied from interface:EnvironmentCustomConfigDao
Gets specific Environment custom configuration by environment ID.- Specified by:
findById
in interfaceEnvironmentCustomConfigDao
- Parameters:
environmentId
- ID of the environment your looking for.- Returns:
EnvironmentCustomConfig
with given environment id or null if one with that ID could not be found.
-
saveOrUpdate
- Specified by:
saveOrUpdate
in interfaceEnvironmentCustomConfigDao
-
delete
- Specified by:
delete
in interfaceEnvironmentCustomConfigDao
-
findAll
Description copied from interface:EnvironmentCustomConfigDao
Get paginated list of all custom configurations.- Specified by:
findAll
in interfaceEnvironmentCustomConfigDao
-
getCount
public long getCount()Description copied from interface:EnvironmentCustomConfigDao
Count all custom configurations.- Specified by:
getCount
in interfaceEnvironmentCustomConfigDao
-