Enum Class SchemaObjectType

java.lang.Object
java.lang.Enum<SchemaObjectType>
org.springframework.data.gemfire.config.schema.SchemaObjectType
All Implemented Interfaces:
Serializable, Comparable<SchemaObjectType>, Constable

public enum SchemaObjectType extends Enum<SchemaObjectType>
SchemaObjectType defines an enumeration of all the types of Apache Geode or Pivotal GemFire schema objects (e.g. Region) that may possibly be handled by Spring Data Geode / Spring Data GemFire and that can be created remotely, from a client application.
Since:
2.0.0
Author:
John Blum
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static SchemaObjectType[] 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 SchemaObjectType 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
    • from

      public static SchemaObjectType from(Object obj)
      Null-safe factory method used to look up and resolve the corresponding SchemaObjectType given an instance of a GemFire schema object. For example, given an instance of Region, this factory method will return REGION.
      Parameters:
      obj - actual instance of a GemFire schema object, e.g. reference to a Region.
      Returns:
      a corresponding SchemaObjectType for a given instance of a GemFire schema object. If the type cannot be determined, then UNKNOWN is returned.
      See Also:
    • from

      public static SchemaObjectType from(Class<?> type)
      Null-safe factory method used to look up and resolve the corresponding SchemaObjectType given the type of GemFire schema object. For example, given the Region interface or any sub-type of Region, this factory method will return REGION.
      Parameters:
      type - type of the GemFire schema object, e.g. the Region interface.
      Returns:
      a corresponding SchemaObjectType for a given type of a GemFire schema object. If the type cannot be determined, then UNKNOWN is returned.
      See Also:
    • getObjectType

      public Class<?> getObjectType()
      Returns the class type of the GemFire schema object represented by this enumerated value.
      Returns:
      the class type of the GemFire schema object represented by this enumerated value.
      See Also: