blob: 38e694bc3139784d77aa517d8ddfd81e01aac630 [file] [log] [blame]
Nick Karanatsios758df8d2014-01-14 22:16:32 -08001/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package net.onrc.onos.ofcontroller.flowmanager;
6
7import com.tinkerpop.blueprints.Direction;
8import java.util.Map;
9import net.onrc.onos.graph.DBOperation;
10
11/**
12 *
13 * @author nickkaranatsios
14 */
15public interface FlowEntityManager {
16 public void setPrimaryKey(String key);
17 public String getPrimaryKey();
18 public void hasMany(Class<?> cClass);
19 public void operationBegin(String opName);
20 public void operationEnd(String opName);
21 public void setProperty(String propertyName, Object value);
22 public Object getProperty(String propertyName);
23 public Map<String, Object> getProperties();
24 public FlowEntityManager append(Object entity);
25 public void addEdge(Object dst, Direction dir, String label);
26 public void removeEdge(Object src, Object dst, Direction dir, String label);
27 public void persist(DBOperation dbHandler);
28}
29