1 package org.bsf.smartValueObject.mediator;2 3 /**4 * The mediator interface.5 * 6 */7 public interface Mediator {8 String INDEXFIELD = "indexfield";9 10 /**11 * Retrieves a graph based on given prototype.12 *13 * @param prototype a prototype to obtain a initialized graph.14 * @return15 * @throws MediatorException16 */17 Object getGraph(Object prototype)18 throws MediatorException;19 20 /**21 * Stores a graph.22 *23 * @param graph the root element of the graph.24 * @throws MediatorException25 * @returns26 */27 ChangeSummary updateGraph(Object graph)28 throws MediatorException;29 30 /**31 * Deletes a graph.32 * @param graph the root element of the graph.33 * @throws MediatorException34 */35 void deleteGraph(Object graph)36 throws MediatorException;37 }38