BaseDataObject

Inheritance: java.lang.Object

public abstract class BaseDataObject

Base class for google data objects.

Constructors

Constructor Description
BaseDataObject(String kind) Initializes a new instance of the class.
BaseDataObject(String kind, String id) Initializes a new instance of the class.
BaseDataObject(String kind, String id, String eTag) Initializes a new instance of the class.

Methods

Method Description
getKind() Type of the resource
getETag() An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
setETag(String value) An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests.
getId() Identifier of the resource.
setId(String value) Identifier of the resource.

BaseDataObject(String kind)

public BaseDataObject(String kind)

Initializes a new instance of the class.

Parameters:

Parameter Type Description
kind java.lang.String Type of the resource

BaseDataObject(String kind, String id)

public BaseDataObject(String kind, String id)

Initializes a new instance of the class.

Parameters:

Parameter Type Description
kind java.lang.String Type of the resource
id java.lang.String Identifier of the resource.

BaseDataObject(String kind, String id, String eTag)

public BaseDataObject(String kind, String id, String eTag)

Initializes a new instance of the class.

Parameters:

Parameter Type Description
kind java.lang.String Type of the resource
id java.lang.String Identifier of the resource.
eTag java.lang.String An entity tag

getKind()

public String getKind()

Type of the resource

Returns: java.lang.String

getETag()

public String getETag()

An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.

Returns: java.lang.String

setETag(String value)

public void setETag(String value)

An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.

Parameters:

Parameter Type Description
value java.lang.String

getId()

public String getId()

Identifier of the resource.

Returns: java.lang.String

setId(String value)

public void setId(String value)

Identifier of the resource.

Parameters:

Parameter Type Description
value java.lang.String