package se.chalmers.dat255.grupp12; /** * Abstract class for creating handlers for commits * */ public abstract class CommitHandler { protected ClientChangeList changes; protected Database db = Database.getInstance(); protected User user; public CommitHandler(ClientChangeList changes, User user) { this.changes = changes; this.user = user; } /** * The insert action of a class, for creations * @param m data about the creation */ public abstract void insert(Modification m); /** * The update action of a class, for edits * @param m data about the update */ public abstract void update(Modification m); /** * The delete action of a class, for removals * @param m data about the deletion */ public abstract void delete(Modification m); }