public enum BatchOperationType extends java.lang.Enum<BatchOperationType>
Enum Constant and Description |
---|
DELETE
Delete the current entry identified by its id.
|
INSERT
Insert the current entry.
|
QUERY
Query for the entry by id.
|
UPDATE
Update the current entry identified by its id.
|
Modifier and Type | Method and Description |
---|---|
static BatchOperationType |
forName(java.lang.String name)
Gets a BatchOperation by name (lowercase), as it appears in XML.
|
void |
generateAtom(XmlWriter w)
Generates a batch:operation element.
|
java.lang.String |
getMethod()
Gets the operation name as an HTTP method name.
|
java.lang.String |
getName()
Gets the operation name as it appears in XML.
|
java.lang.String |
toString() |
static BatchOperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BatchOperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchOperationType QUERY
public static final BatchOperationType INSERT
public static final BatchOperationType UPDATE
public static final BatchOperationType DELETE
public static BatchOperationType[] values()
for (BatchOperationType c : BatchOperationType.values()) System.out.println(c);
public static BatchOperationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getMethod()
public java.lang.String toString()
toString
in class java.lang.Enum<BatchOperationType>
public static BatchOperationType forName(java.lang.String name)
name
- public void generateAtom(XmlWriter w) throws java.io.IOException
w
- java.io.IOException