public static enum MongoDBQueryDescriptor.Operation extends Enum<MongoDBQueryDescriptor.Operation>
| Enum Constant and Description |
|---|
AGGREGATE
This is used by the query parser when the parsed query requires an aggregation, usually for embedded collections.
|
AGGREGATE_PIPELINE
This is used for native queries, when the user wants to execute a generic aggregation query.
|
COUNT |
FIND |
FINDANDMODIFY |
FINDONE |
INSERT |
REMOVE |
UPDATE |
| Modifier and Type | Method and Description |
|---|---|
static MongoDBQueryDescriptor.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoDBQueryDescriptor.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoDBQueryDescriptor.Operation FIND
public static final MongoDBQueryDescriptor.Operation FINDONE
public static final MongoDBQueryDescriptor.Operation FINDANDMODIFY
public static final MongoDBQueryDescriptor.Operation INSERT
public static final MongoDBQueryDescriptor.Operation REMOVE
public static final MongoDBQueryDescriptor.Operation UPDATE
public static final MongoDBQueryDescriptor.Operation COUNT
public static final MongoDBQueryDescriptor.Operation AGGREGATE
public static final MongoDBQueryDescriptor.Operation AGGREGATE_PIPELINE
public static MongoDBQueryDescriptor.Operation[] values()
for (MongoDBQueryDescriptor.Operation c : MongoDBQueryDescriptor.Operation.values()) System.out.println(c);
public static MongoDBQueryDescriptor.Operation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2010–2017 Hibernate. All rights reserved.