Class AlertRecordRef
java.lang.Object
com.kingsrook.qqq.backend.core.alerts.AlertRecordRef
- All Implemented Interfaces:
Serializable
A record that an alert is about. The label is internal (shown in-app to
users who can see the record), never sent to an external channel.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorAlertRecordRef(String tableName, Serializable primaryKey) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo refs are equal when they name the same table and the same key (keys compared by their string form, so 1 and "1" match).getLabel()Getter for labelGetter for primaryKeyGetter for tableNameinthashCode()static AlertRecordRefof(String tableName, Serializable primaryKey) One ref to one record.static List<AlertRecordRef> of(String tableName, Collection<? extends Serializable> primaryKeys) One ref per primary key, all in the same table.voidSetter for labelvoidsetPrimaryKey(Serializable primaryKey) Setter for primaryKeyvoidsetTableName(String tableName) Setter for tableNametoString()Fluent setter for label (internal: shown in-app only, never sent out)withPrimaryKey(Serializable primaryKey) Fluent setter for primaryKeywithTableName(String tableName) Fluent setter for tableName
-
Constructor Details
-
AlertRecordRef
public AlertRecordRef()Constructor -
AlertRecordRef
Constructor
-
-
Method Details
-
of
public static List<AlertRecordRef> of(String tableName, Collection<? extends Serializable> primaryKeys) One ref per primary key, all in the same table. Null keys are skipped. -
of
One ref to one record. -
equals
-
hashCode
-
toString
-
getTableName
Getter for tableName -
setTableName
Setter for tableName -
withTableName
Fluent setter for tableName -
getPrimaryKey
Getter for primaryKey -
setPrimaryKey
Setter for primaryKey -
withPrimaryKey
Fluent setter for primaryKey -
getLabel
Getter for label -
setLabel
Setter for label -
withLabel
Fluent setter for label (internal: shown in-app only, never sent out)
-