Package ai.tock.bot.admin.indicators
Interface IndicatorDAO
-
- All Implemented Interfaces:
public interface IndicatorDAO
-
-
Method Summary
Modifier and Type Method Description abstract Unitsave(Indicator indicator)Save an indicator. abstract BooleanexistByNameAndBotId(String name, String botId)Check if an indicator exists. abstract IndicatorfindByNameAndBotId(String name, String botId)Find an indicator by its name and bot id. abstract List<Indicator>findAllByBotId(String botId)Find all indicators by bot id abstract List<Indicator>findAll()Find all indicators abstract Booleandelete(Id<Indicator> id)Delete an indicator by its id abstract BooleandeleteByNameAndApplicationName(String name, String applicationName)Delete an indicator by its name and its application name -
-
Method Detail
-
save
abstract Unit save(Indicator indicator)
Save an indicator.
- Parameters:
indicator- the indicator to save
-
existByNameAndBotId
abstract Boolean existByNameAndBotId(String name, String botId)
Check if an indicator exists.
- Parameters:
name- the indicator namebotId- the bot id
-
findByNameAndBotId
abstract Indicator findByNameAndBotId(String name, String botId)
Find an indicator by its name and bot id.
- Parameters:
name- the indicator namebotId- the bot id
-
findAllByBotId
abstract List<Indicator> findAllByBotId(String botId)
Find all indicators by bot id
- Parameters:
botId- the bot id
-
delete
abstract Boolean delete(Id<Indicator> id)
Delete an indicator by its id
- Parameters:
id- the indicator id
-
deleteByNameAndApplicationName
abstract Boolean deleteByNameAndApplicationName(String name, String applicationName)
Delete an indicator by its name and its application name
- Parameters:
name- indicator nameapplicationName- application name
-
-
-
-