Class EphemeralAgentTemplateHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
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, findAll, findById, merge, save, saveAllMethods 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, initDao
-
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
-