Package com.google.gerrit.server.schema
Enum DataSourceProvider.Context
- java.lang.Object
- 
- java.lang.Enum<DataSourceProvider.Context>
- 
- com.google.gerrit.server.schema.DataSourceProvider.Context
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<DataSourceProvider.Context>
 - Enclosing class:
- DataSourceProvider
 
 public static enum DataSourceProvider.Context extends Enum<DataSourceProvider.Context> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description MULTI_USERSINGLE_USER
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSourceProvider.ContextvalueOf(String name)Returns the enum constant of this type with the specified name.static DataSourceProvider.Context[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
SINGLE_USERpublic static final DataSourceProvider.Context SINGLE_USER 
 - 
MULTI_USERpublic static final DataSourceProvider.Context MULTI_USER 
 
- 
 - 
Method Detail- 
valuespublic static DataSourceProvider.Context[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataSourceProvider.Context c : DataSourceProvider.Context.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DataSourceProvider.Context valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-