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 | |
| 11 | /** |
| 12 | * |
| 13 | * @author nickkaranatsios |
| 14 | */ |
| 15 | public 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 | |