001package co.codewizards.cloudstore.local.persistence; 002 003/** 004 * Automatically track changes by updating the {@link #getLocalRevision() localRevision} property whenever 005 * the object is written to the datastore. 006 * <p> 007 * This interface is implemented by persistence-capable (a.k.a. entity) classes. 008 * @author Marco หงุ่ยตระกูล-Schulze - marco at codewizards dot co 009 * @see co.codewizards.cloudstore.local.local.AutoTrackLifecycleListener 010 */ 011public interface AutoTrackLocalRevision { 012 /** 013 * Get the {@link LocalRepository#getRevision() local revision} of the last modification 014 * of this entity. 015 * @return the localRevision of the last modification. 016 */ 017 long getLocalRevision(); 018 void setLocalRevision(long localRevision); 019}