Class EphemeralAgentTemplateHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<EphemeralAgentTemplate>
com.atlassian.bamboo.agent.ephemeral.EphemeralAgentTemplateHibernateDao
- All Implemented Interfaces:
EphemeralAgentTemplateDao
,BambooObjectDao<EphemeralAgentTemplate>
,org.springframework.beans.factory.InitializingBean
public class EphemeralAgentTemplateHibernateDao
extends BambooHibernateObjectDao<EphemeralAgentTemplate>
implements EphemeralAgentTemplateDao
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAll()
Gets all available Ephemeral Agent Template.findByFilter
(String filter, int start, int limit) Returns list (one page) of available ephemeral agent templates.@Nullable EphemeralAgentTemplate
findById
(long id) Get Ephemeral Agent Template by its id.@NotNull Optional<EphemeralAgentTemplate>
findByName
(@NotNull String name) Get Ephemeral Agent Template by its name.Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
EphemeralAgentTemplateHibernateDao
public EphemeralAgentTemplateHibernateDao()
-
-
Method Details
-
findAll
Description copied from interface:EphemeralAgentTemplateDao
Gets all available Ephemeral Agent Template.- Specified by:
findAll
in interfaceEphemeralAgentTemplateDao
- Returns:
- list of the templates
-
findByFilter
Description copied from interface:EphemeralAgentTemplateDao
Returns list (one page) of available ephemeral agent templates. Supports pagination.- Specified by:
findByFilter
in interfaceEphemeralAgentTemplateDao
- Parameters:
filter
- filter- Returns:
- list of templates
-
findById
Description copied from interface:EphemeralAgentTemplateDao
Get Ephemeral Agent Template by its id.- Specified by:
findById
in interfaceEphemeralAgentTemplateDao
- Parameters:
id
- Ephemeral Agent Template id- Returns:
- Ephemeral Agent Template object or null if not found
-
findByName
Description copied from interface:EphemeralAgentTemplateDao
Get Ephemeral Agent Template by its name.- Specified by:
findByName
in interfaceEphemeralAgentTemplateDao
- Parameters:
name
- Ephemeral Agent Template name- Returns:
- Ephemeral Agent Template object or empty if not found
-