Package app.ductape.sdk.database.types
Record Class TriggerTypes.TriggerDefinition
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerDefinition
- Enclosing class:
- TriggerTypes
public static record TriggerTypes.TriggerDefinition(String name, String description, List<TriggerTypes.TriggerEvent> events, List<String> tables, Map<String,Object> condition, List<Map<String,Object>> actions, Boolean enabled, Integer priority, List<String> tags)
extends Record
Full trigger definition.
actions entries are Maps shaped like TS ITriggerAction.
condition is a Map for compound conditions or convert TriggerTypes.ConditionClause to a map.-
Constructor Summary
ConstructorsConstructorDescriptionTriggerDefinition(String name, String description, List<TriggerTypes.TriggerEvent> events, List<String> tables, Map<String, Object> condition, List<Map<String, Object>> actions, Boolean enabled, Integer priority, List<String> tags) Creates an instance of aTriggerDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.Returns the value of theconditionrecord component.Returns the value of thedescriptionrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.priority()Returns the value of thepriorityrecord component.tables()Returns the value of thetablesrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TriggerDefinition
public TriggerDefinition(String name, String description, List<TriggerTypes.TriggerEvent> events, List<String> tables, Map<String, Object> condition, List<Map<String, Object>> actions, Boolean enabled, Integer priority, List<String> tags) Creates an instance of aTriggerDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentevents- the value for theeventsrecord componenttables- the value for thetablesrecord componentcondition- the value for theconditionrecord componentactions- the value for theactionsrecord componentenabled- the value for theenabledrecord componentpriority- the value for thepriorityrecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
tables
Returns the value of thetablesrecord component.- Returns:
- the value of the
tablesrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-