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
-
-
Constructor Summary
Constructors Constructor Description EphemeralAgentTemplateHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EphemeralAgentTemplate>findAll()Gets all available Ephemeral Agent Template.List<EphemeralAgentTemplate>findByFilter(String filter, int start, int limit)Returns list (one page) of available ephemeral agent templates.@Nullable EphemeralAgentTemplatefindById(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 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
-
-
-
-
Method Detail
-
findAll
public List<EphemeralAgentTemplate> findAll()
Description copied from interface:EphemeralAgentTemplateDaoGets all available Ephemeral Agent Template.- Specified by:
findAllin interfaceEphemeralAgentTemplateDao- Returns:
- list of the templates
-
findByFilter
public List<EphemeralAgentTemplate> findByFilter(String filter, int start, int limit)
Description copied from interface:EphemeralAgentTemplateDaoReturns list (one page) of available ephemeral agent templates. Supports pagination.- Specified by:
findByFilterin interfaceEphemeralAgentTemplateDao- Parameters:
filter- filter- Returns:
- list of templates
-
findById
@Nullable public @Nullable EphemeralAgentTemplate findById(long id)
Description copied from interface:EphemeralAgentTemplateDaoGet Ephemeral Agent Template by its id.- Specified by:
findByIdin interfaceEphemeralAgentTemplateDao- Parameters:
id- Ephemeral Agent Template id- Returns:
- Ephemeral Agent Template object or null if not found
-
findByName
@NotNull public @NotNull Optional<EphemeralAgentTemplate> findByName(@NotNull @NotNull String name)
Description copied from interface:EphemeralAgentTemplateDaoGet Ephemeral Agent Template by its name.- Specified by:
findByNamein interfaceEphemeralAgentTemplateDao- Parameters:
name- Ephemeral Agent Template name- Returns:
- Ephemeral Agent Template object or empty if not found
-
-