public final enum

BatchOperationType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.google.gdata.data.batch.BatchOperationType

Class Overview

Defines a batch operation (query, update, insert, delete). This enum is the java equivalent of <batch: operation type="..."/>.

Summary

Enum Values
BatchOperationType  DELETE  Delete the current entry identified by its id. 
BatchOperationType  INSERT  Insert the current entry. 
BatchOperationType  QUERY  Query for the entry by id. 
BatchOperationType  UPDATE  Update the current entry identified by its id. 
Fields
private static final Map<String, BatchOperationType> BY_NAME
private final String method
private final String name
[Expand]
Inherited Fields
From class java.lang.Enum
Public Methods
static BatchOperationType forName(String name)
Gets a BatchOperation by name (lowercase), as it appears in XML.
void generateAtom(XmlWriter w)
Generates a batch:operation element.
String getMethod()
Gets the operation name as an HTTP method name.
String getName()
Gets the operation name as it appears in XML.
String toString()
static BatchOperationType valueOf(String name)
final static BatchOperationType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final BatchOperationType DELETE

Delete the current entry identified by its id.

public static final BatchOperationType INSERT

Insert the current entry.

public static final BatchOperationType QUERY

Query for the entry by id.

public static final BatchOperationType UPDATE

Update the current entry identified by its id.

Fields

private static final Map<String, BatchOperationType> BY_NAME

private final String method

private final String name

Public Methods

public static BatchOperationType forName (String name)

Gets a BatchOperation by name (lowercase), as it appears in XML.

Parameters
name
Returns
  • a BatchOperation or null

public void generateAtom (XmlWriter w)

Generates a batch:operation element.

Parameters
w
Throws
IOException

public String getMethod ()

Gets the operation name as an HTTP method name.

Returns
  • HTTP method name

public String getName ()

Gets the operation name as it appears in XML.

Returns
  • operation name

public String toString ()

public static BatchOperationType valueOf (String name)

Parameters
name

public static final BatchOperationType[] values ()