org.ektorp.support
Class CouchDbDocument

java.lang.Object
  extended by org.ektorp.support.CouchDbDocument
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Entity, OpenCouchDbDocument

public class CouchDbDocument
extends java.lang.Object
implements java.io.Serializable

Author:
henrik lundgren
See Also:
Serialized Form

Constructor Summary
CouchDbDocument()
           
 
Method Summary
protected  void addInlineAttachment(Attachment a)
           
 java.util.Map<java.lang.String,Attachment> getAttachments()
           
 java.util.List<java.lang.String> getConflicts()
           
 java.lang.String getId()
           
 java.lang.String getRevision()
           
 boolean hasConflict()
           
 boolean isNew()
           
protected  void removeAttachment(java.lang.String id)
           
 void setId(java.lang.String s)
           
 void setRevision(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CouchDbDocument

public CouchDbDocument()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String s)

getRevision

public java.lang.String getRevision()

setRevision

public void setRevision(java.lang.String s)

isNew

public boolean isNew()

getAttachments

public java.util.Map<java.lang.String,Attachment> getAttachments()

getConflicts

public java.util.List<java.lang.String> getConflicts()
Returns:
a list of conflicting revisions. Note: Will only be populated if this document has been loaded through the CouchDbConnector.getWithConflicts method.

hasConflict

public boolean hasConflict()
Returns:
true if this document has a conflict. Note: Will only give a correct value if this document has been loaded through the CouchDbConnector.getWithConflicts method.

removeAttachment

protected void removeAttachment(java.lang.String id)

addInlineAttachment

protected void addInlineAttachment(Attachment a)


Copyright © 2011. All Rights Reserved.