Package com.highdeal.admin.hci
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic final SQLConnectionAdminOp.DatabaseScopegetDatabaseScopeFromId(byte databaseScopeId) Returns the DatabaScope regarding the ID.static final SQLConnectionAdminOp.DatabaseScopegetDatabaseScopeFromPrettyName(String prettyName) Returns the DatabaScope regarding the pretty name.bytegetId()Gets the database scope ID.Gets the database scope name.Returns the enum constant of this class with the specified name.static SQLConnectionAdminOp.DatabaseScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CORE
Enumeration value for the Core Database of SAP Convergent Charging. -
SESSION
Enumeration value for the Session Database.
-
-
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
-
getId
public byte getId()Gets the database scope ID.- Returns:
- The database scope ID
-
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
nullwhen the pretty name does not corresponding to a database scope.
-
getDatabaseScopeFromId
Returns the DatabaScope regarding the ID.- Parameters:
databaseScopeId- The ID of the DatabaseScope- Returns:
- The DataScope corresponding to the id given in argument.
Returns
nullwhen the id does not corresponding to a database scope.
-