use of com.runwaysdk.business.graph.EdgeObject in project geoprism-registry by terraframe.
the class DHIS2ServiceTest method deleteExternalIds.
@Request
private void deleteExternalIds() {
final MdEdgeDAOIF mdEdge = MdEdgeDAO.getMdEdgeDAO(GeoVertex.EXTERNAL_ID);
StringBuilder builder = new StringBuilder();
builder.append("SELECT FROM " + mdEdge.getDBClassName());
builder.append(" WHERE out = :system");
final GraphQuery<EdgeObject> query = new GraphQuery<EdgeObject>(builder.toString());
query.setParameter("system", this.system.getRID());
List<EdgeObject> edges = query.getResults();
for (EdgeObject edge : edges) {
edge.delete();
}
}
Aggregations