Package cn.leancloud
Enum Class EngineHookType
- All Implemented Interfaces:
Serializable,Comparable<EngineHookType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription在被删一个对象后执行操作在数据保存后触发指定操作在更新对象后执行特定的动作在删除一个对象之前做一些检查工作在将对象保存到云端数据表之前,可以对数据做一些清理或验证在更新对象之前做一些检查工作在用户登录之时执行指定操作当用户通过邮箱验证时,对该用户执行特定操作当用户通过短信验证时,对该用户执行特定操作 -
Method Summary
Modifier and TypeMethodDescriptionstatic EngineHookTypetoString()static EngineHookTypeReturns the enum constant of this class with the specified name.static EngineHookType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
beforeSave
在将对象保存到云端数据表之前,可以对数据做一些清理或验证 -
afterSave
在数据保存后触发指定操作 -
beforeUpdate
在更新对象之前做一些检查工作 -
afterUpdate
在更新对象后执行特定的动作 -
beforeDelete
在删除一个对象之前做一些检查工作 -
afterDelete
在被删一个对象后执行操作 -
onVerifiedSMS
当用户通过短信验证时,对该用户执行特定操作 -
onVerifiedEmail
当用户通过邮箱验证时,对该用户执行特定操作 -
onLogin
在用户登录之时执行指定操作
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<EngineHookType>
-
parse
-