public final class Hook extends Object
For Manual Validation rules and Table set rules, no hook is used.
Modifier and Type | Field and Description |
---|---|
static Hook |
AfterCreate
Defines the 'After create' hook.
|
static Hook |
AfterDelete
Defines the 'After delete' hook.
|
static Hook |
AfterUpdate
Defines the 'After update' hook.
|
static Hook |
BeforeCreate
Defines the 'Before create' hook.
|
static Hook |
BeforeDelete
Defines the 'Before delete' hook.
|
static Hook |
BeforeUpdate
Defines the 'Before update' hook.
|
static Hook |
OnConstraint
Defines the 'On constraint' hook.
|
static Hook |
OnDemand
Defines the 'On demand' hook.
|
Modifier and Type | Method and Description |
---|---|
com.onwbp.base.text.UserMessage |
getLabel()
Returns the
UserMessage label of this hook. |
String |
getName()
Returns the
String name of this hook. |
boolean |
isAfterCreate()
Returns
true if this is 'After create'. |
boolean |
isAfterDelete()
Returns
true if this is 'After delete'. |
boolean |
isAfterUpdate()
Returns
true if this is 'After update'. |
boolean |
isBeforeCreate()
Returns
true if this is 'Before create'. |
boolean |
isBeforeDelete()
Returns
true if this is 'Before delete'. |
boolean |
isBeforeUpdate()
Returns
true if this is 'Before update'. |
boolean |
isOnConstraint()
Returns
true if this is 'On constraint'. |
boolean |
isOnDemand()
Returns
true if this is 'On demand'. |
static Hook |
parse(String name)
Returns the instance that corresponds to the value specified.
|
public static final Hook BeforeCreate
public static final Hook AfterCreate
public static final Hook BeforeUpdate
public static final Hook AfterUpdate
public static final Hook BeforeDelete
public static final Hook AfterDelete
public static final Hook OnDemand
public static final Hook OnConstraint
public static Hook parse(String name)
public String getName()
String
name of this hook.public boolean isAfterCreate()
true
if this is 'After create'.public boolean isAfterDelete()
true
if this is 'After delete'.public boolean isAfterUpdate()
true
if this is 'After update'.public boolean isBeforeCreate()
true
if this is 'Before create'.public boolean isBeforeDelete()
true
if this is 'Before delete'.public boolean isBeforeUpdate()
true
if this is 'Before update'.public boolean isOnDemand()
true
if this is 'On demand'.public boolean isOnConstraint()
true
if this is 'On constraint'.public com.onwbp.base.text.UserMessage getLabel()
UserMessage
label of this hook.