org.iternine.jeppetto.dao.mongodb.enhance
Interface DirtyableDBObject

All Superinterfaces:
org.bson.BSONObject, com.mongodb.DBObject
All Known Implementing Classes:
DirtyableDBObjectList, DirtyableDBObjectMap, DirtyableDBObjectSet

public interface DirtyableDBObject
extends com.mongodb.DBObject


Method Summary
 boolean isDirty()
           
 boolean isPersisted()
           
 void markPersisted()
          Consider the current state of the object to be in sync with the persisted state.
 
Methods inherited from interface com.mongodb.DBObject
isPartialObject, markAsPartialObject
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 

Method Detail

isDirty

boolean isDirty()
Returns:
true if this object is dirtied from it's persisted state

markPersisted

void markPersisted()
Consider the current state of the object to be in sync with the persisted state.


isPersisted

boolean isPersisted()
Returns:
true if this object has a representation in the underlying store.


Copyright © 2011. All Rights Reserved.