Enum Class SQLConnectionAdminOp.DatabaseScope

java.lang.Object
java.lang.Enum<SQLConnectionAdminOp.DatabaseScope>
com.highdeal.admin.hci.SQLConnectionAdminOp.DatabaseScope
All Implemented Interfaces:
Serializable, Comparable<SQLConnectionAdminOp.DatabaseScope>, Constable
Enclosing class:
SQLConnectionAdminOp

public static enum SQLConnectionAdminOp.DatabaseScope extends Enum<SQLConnectionAdminOp.DatabaseScope>
This enumeration lists the possible back-end database of SAP CC: Core Database, Session Database.
  • Enum Constant Details

  • Method Details

    • values

      public static SQLConnectionAdminOp.DatabaseScope[] 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 SQLConnectionAdminOp.DatabaseScope 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
    • getId

      public byte getId()
      Gets the database scope ID.
      Returns:
      The database scope ID
    • getPrettyName

      public String getPrettyName()
      Gets the database scope name.
      Returns:
      The database scope name
    • getDatabaseScopeFromPrettyName

      public static final SQLConnectionAdminOp.DatabaseScope getDatabaseScopeFromPrettyName(String prettyName)
      Returns the DatabaScope regarding the pretty name.
      Parameters:
      prettyName - The pretty name
      Returns:
      The DataScope corresponding to the pretty name given in argument. Returns null when the pretty name does not corresponding to a database scope.
    • getDatabaseScopeFromId

      public static final SQLConnectionAdminOp.DatabaseScope getDatabaseScopeFromId(byte databaseScopeId)
      Returns the DatabaScope regarding the ID.
      Parameters:
      databaseScopeId - The ID of the DatabaseScope
      Returns:
      The DataScope corresponding to the id given in argument. Returns null when the id does not corresponding to a database scope.