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
-
-
Constructor Summary
Constructors Constructor Description EnvironmentCustomConfigHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
findById
@Nullable public @Nullable EnvironmentCustomConfig findById(long environmentId)
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
public void saveOrUpdate(@NotNull @NotNull EnvironmentCustomConfig environmentCustomConfig)
- Specified by:
saveOrUpdate
in interfaceEnvironmentCustomConfigDao
-
delete
public void delete(@NotNull @NotNull EnvironmentCustomConfig environmentCustomConfig)
- Specified by:
delete
in interfaceEnvironmentCustomConfigDao
-
findAll
@NotNull public @NotNull List<EnvironmentCustomConfig> findAll(int firstResult, int maxResults)
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
-
-