Package cn.leancloud

Enum Class EngineHookType

java.lang.Object
java.lang.Enum<EngineHookType>
cn.leancloud.EngineHookType
All Implemented Interfaces:
Serializable, Comparable<EngineHookType>, java.lang.constant.Constable

public enum EngineHookType extends Enum<EngineHookType>
  • Enum Constant Details

    • beforeSave

      public static final EngineHookType beforeSave
      在将对象保存到云端数据表之前,可以对数据做一些清理或验证
    • afterSave

      public static final EngineHookType afterSave
      在数据保存后触发指定操作
    • beforeUpdate

      public static final EngineHookType beforeUpdate
      在更新对象之前做一些检查工作
    • afterUpdate

      public static final EngineHookType afterUpdate
      在更新对象后执行特定的动作
    • beforeDelete

      public static final EngineHookType beforeDelete
      在删除一个对象之前做一些检查工作
    • afterDelete

      public static final EngineHookType afterDelete
      在被删一个对象后执行操作
    • onVerifiedSMS

      public static final EngineHookType onVerifiedSMS
      当用户通过短信验证时,对该用户执行特定操作
    • onVerifiedEmail

      public static final EngineHookType onVerifiedEmail
      当用户通过邮箱验证时,对该用户执行特定操作
    • onLogin

      public static final EngineHookType onLogin
      在用户登录之时执行指定操作
  • Method Details

    • values

      public static EngineHookType[] 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

      public static EngineHookType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EngineHookType>
    • parse

      public static EngineHookType parse(String string)