org.ektorp.util
Interface DocumentAccessor


public interface DocumentAccessor

Interface for accessing id and rev fields in a document of unknown type.

Author:
henrik lundgren

Method Summary
 String getId(Object o)
           
 String getRevision(Object o)
           
 boolean hasIdMutator()
           
 void setId(Object o, String id)
           
 void setRevision(Object o, String rev)
           
 

Method Detail

hasIdMutator

boolean hasIdMutator()
Returns:
true if document type's id field can be mutated.

getId

String getId(Object o)

setId

void setId(Object o,
           String id)

getRevision

String getRevision(Object o)

setRevision

void setRevision(Object o,
                 String rev)


Copyright © 2011. All Rights Reserved.