package org.simantics.interop.update.model; import org.simantics.db.Resource; import org.simantics.db.Statement; import org.simantics.db.WriteGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.interop.test.GraphChanges; /** * No-operation. * * @author MLMARKO * */ public class NopOp extends UpdateOp{ private Resource r; public NopOp(Resource r, GraphChanges changes) { super(changes); this.r = r; } @Override protected void _apply(WriteGraph g) throws DatabaseException { } @Override public Resource getCreatedResource() { return r; } @Override public Resource getResource() { return r; } @Override public Statement getStatement() { return null; } @Override public boolean isAdd() { return false; } @Override public boolean isDelete() { return false; } @Override public boolean requiresOp(UpdateOp op) { return false; } @Override public boolean selectOp(UpdateOp op, boolean select) { return false; } }