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
Constructors -
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 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, saveAllMethods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplateMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:EphemeralAgentTemplateDaoGets all available Ephemeral Agent Template.- Specified by:
findAllin interfaceEphemeralAgentTemplateDao- Returns:
- list of the templates
-
findByFilter
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
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
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
-