Package com.couchbase.lite
Class ReplicatedDocument
- java.lang.Object
-
- com.couchbase.lite.ReplicatedDocument
-
public final class ReplicatedDocument extends java.lang.ObjectInformation about a Document updated by replication.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCollectionName()The name of the collection to which the changed document belongs.java.lang.StringgetCollectionScope()The scope of the collection to which the changed document belongs.CouchbaseLiteExceptiongetError()The current document replication error.java.util.EnumSet<DocumentFlag>getFlags()The current status flag of the document.java.lang.StringgetID()The id document of the changed document.voidsetError(CouchbaseLiteException error)Set the current document replication error.java.lang.StringtoString()
-
-
-
Method Detail
-
getCollectionScope
@NonNull public java.lang.String getCollectionScope()
The scope of the collection to which the changed document belongs.
-
getCollectionName
@NonNull public java.lang.String getCollectionName()
The name of the collection to which the changed document belongs.
-
getID
@NonNull public java.lang.String getID()
The id document of the changed document.
-
getFlags
@NonNull public java.util.EnumSet<DocumentFlag> getFlags()
The current status flag of the document. eg. deleted, access removed
-
getError
@Nullable public CouchbaseLiteException getError()
The current document replication error.
-
setError
public void setError(@Nullable CouchbaseLiteException error)Set the current document replication error.
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-