|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BatchOperationType>
com.google.gdata.data.batch.BatchOperationType
public enum BatchOperationType
Defines a batch operation (query, update, insert, delete). This enum is the java equivalent of <batch: operation type="..."/>.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static BatchOperationType |
forName(java.lang.String name)
Gets a BatchOperation by name (lowercase), as it appears in XML. |
void |
generateAtom(com.google.gdata.util.common.xml.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BatchOperationType QUERY
public static final BatchOperationType INSERT
public static final BatchOperationType UPDATE
public static final BatchOperationType DELETE
Method Detail |
---|
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 name
java.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(com.google.gdata.util.common.xml.XmlWriter w) throws java.io.IOException
w
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |