public class JsonBooleanDocument extends AbstractDocument<Boolean> implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static JsonBooleanDocument |
create(String id)
Creates a
JsonBooleanDocument which the document id. |
static JsonBooleanDocument |
create(String id,
Boolean content)
Creates a
JsonBooleanDocument which the document id and content. |
static JsonBooleanDocument |
create(String id,
Boolean content,
long cas)
Creates a
JsonBooleanDocument which the document id, content and the CAS value. |
static JsonBooleanDocument |
create(String id,
int expiry,
Boolean content)
Creates a
JsonBooleanDocument which the document id, content and the expiration time. |
static JsonBooleanDocument |
create(String id,
int expiry,
Boolean content,
long cas)
Creates a
JsonBooleanDocument which the document id, content, CAS value, expiration time and status code. |
static JsonBooleanDocument |
create(String id,
int expiry,
Boolean content,
long cas,
MutationToken mutationToken)
Creates a
JsonBooleanDocument which the document id, content, CAS value, expiration time and status code. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
Boolean content)
Creates a copy from a different
JsonBooleanDocument, but changes the content. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
long cas)
Creates a copy from a different
JsonBooleanDocument, but changes the CAS value. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
String id)
Creates a copy from a different
JsonBooleanDocument, but changes the document ID. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
String id,
Boolean content)
Creates a copy from a different
JsonBooleanDocument, but changes the document ID and content. |
cas, content, equals, expiry, hashCode, id, mutationToken, readFromSerializedStream, toString, writeToSerializedStreampublic static JsonBooleanDocument create(String id)
Creates a JsonBooleanDocument which the document id.
id - the per-bucket unique document id.JsonBooleanDocument.public static JsonBooleanDocument create(String id, Boolean content)
Creates a JsonBooleanDocument which the document id and content.
id - the per-bucket unique document id.content - the content of the document.JsonBooleanDocument.public static JsonBooleanDocument create(String id, Boolean content, long cas)
Creates a JsonBooleanDocument which the document id, content and the CAS value.
id - the per-bucket unique document id.content - the content of the document.cas - the CAS (compare and swap) value for optimistic concurrency.JsonBooleanDocument.public static JsonBooleanDocument create(String id, int expiry, Boolean content)
Creates a JsonBooleanDocument which the document id, content and the expiration time.
id - the per-bucket unique document id.content - the content of the document.expiry - the expiration time of the document.JsonBooleanDocument.public static JsonBooleanDocument create(String id, int expiry, Boolean content, long cas)
Creates a JsonBooleanDocument which the document id, content, CAS value, expiration time and status code.
This factory method is normally only called within the client library when a response is analyzed and a document is returned which is enriched with the status code. It does not make sense to pre populate the status field from the user level code.
id - the per-bucket unique document id.content - the content of the document.cas - the CAS (compare and swap) value for optimistic concurrency.expiry - the expiration time of the document.JsonBooleanDocument.public static JsonBooleanDocument create(String id, int expiry, Boolean content, long cas, MutationToken mutationToken)
Creates a JsonBooleanDocument which the document id, content, CAS value, expiration time and status code.
This factory method is normally only called within the client library when a response is analyzed and a document is returned which is enriched with the status code. It does not make sense to pre populate the status field from the user level code.
id - the per-bucket unique document id.content - the content of the document.cas - the CAS (compare and swap) value for optimistic concurrency.expiry - the expiration time of the document.JsonBooleanDocument.public static JsonBooleanDocument from(JsonBooleanDocument doc, String id)
Creates a copy from a different JsonBooleanDocument, but changes the document ID.
doc - the original JsonBooleanDocument to copy.id - the per-bucket unique document id.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, Boolean content)
Creates a copy from a different JsonBooleanDocument, but changes the content.
doc - the original JsonBooleanDocument to copy.content - the content of the document.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, String id, Boolean content)
Creates a copy from a different JsonBooleanDocument, but changes the document ID and content.
doc - the original JsonBooleanDocument to copy.id - the per-bucket unique document id.content - the content of the document.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, long cas)
Creates a copy from a different JsonBooleanDocument, but changes the CAS value.
doc - the original JsonBooleanDocument to copy.cas - the CAS (compare and swap) value for optimistic concurrency.JsonBooleanDocument with the changed properties.Copyright © 2015 Couchbase, Inc.