public class CriterionType extends EnumType
To use an enumeration in a where clause, make sure you use the internal database value. This can be retrieved from a particular enum instance by calling getValue().
| Modifier and Type | Field and Description |
|---|---|
static CriterionType |
NULL |
static CriterionType |
PRIMARYROLE |
static CriterionType |
RESOURCE |
static CriterionType |
RESOURCECODE |
static CriterionType |
ROLE |
| Modifier and Type | Method and Description |
|---|---|
static CriterionType |
getCriterionType(int iCriterionType)
Gets an instance of CriterionType based on the integer value specified.
|
static CriterionType |
getCriterionType(String sCriterionType)
Gets an instance of CriterionType based on the String value specified.
|
String |
getDescription()
Gets the description of this CriterionType instance
|
static String[] |
getEnumDescriptions()
Gets an array of all descriptions for this enumeration
|
static String[] |
getEnumValues()
Gets an array of all internal values for this enumeration
|
String |
getValue()
Gets the internal value of this CriterionType instance
|
String |
toString()
Returns a string representation of the object, which is the same as the description returned by the getDescription() method
|
public static final CriterionType NULL
public static final CriterionType PRIMARYROLE
public static final CriterionType ROLE
public static final CriterionType RESOURCE
public static final CriterionType RESOURCECODE
public String toString()
public String getValue()
public String getDescription()
getDescription in class EnumTypepublic static CriterionType getCriterionType(String sCriterionType)
sCriterionType - the internal value or descriptionpublic static CriterionType getCriterionType(int iCriterionType)
iCriterionType - an integer representing a particular value of this class. This value is also used when exporting to XML.public static String[] getEnumValues()
public static String[] getEnumDescriptions()
Copyright © 2003, 2022, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.