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