use of net.geoprism.registry.graph.GeoVertex in project geoprism-registry by terraframe.
the class VertexServerGeoObject method getVertex.
public static VertexObject getVertex(ServerGeoObjectType type, String uuid) {
String statement = "SELECT FROM " + type.getMdVertex().getDBClassName();
statement += " WHERE uuid = :uuid";
GraphQuery<GeoVertex> query = new GraphQuery<GeoVertex>(statement);
query.setParameter("uuid", uuid);
return query.getSingleResult();
}
use of net.geoprism.registry.graph.GeoVertex in project geoprism-registry by terraframe.
the class VertexServerGeoObject method getVertexByCode.
public static VertexObject getVertexByCode(ServerGeoObjectType type, String code) {
String statement = "SELECT FROM " + type.getMdVertex().getDBClassName();
statement += " WHERE code = :code";
GraphQuery<GeoVertex> query = new GraphQuery<GeoVertex>(statement);
query.setParameter("code", code);
return query.getSingleResult();
}
Aggregations