public Edge getEdge(final Object id) { if (null == id) throw ExceptionFactory.edgeIdCanNotBeNull(); String idString = id.toString(); return this.edges.get(idString); }
public Neo4j2Edge getEdge(final Object id) { if (null == id) throw ExceptionFactory.edgeIdCanNotBeNull(); this.autoStartTransaction(true); try { final Long longId; if (id instanceof Long) longId = (Long) id; else longId = Double.valueOf(id.toString()).longValue(); return new Neo4j2Edge(this.rawGraph.getRelationshipById(longId), this); } catch (NotFoundException e) { return null; } catch (NumberFormatException e) { return null; } }
@Override public Edge getEdge(final Object id) { if (null == id) { throw ExceptionFactory.edgeIdCanNotBeNull(); } try { Long longId = Double.valueOf(id.toString()).longValue(); autoStartTransaction(false); com.sparsity.sparksee.gdb.Graph rawGraph = getRawGraph(); int type = rawGraph.getObjectType(longId); if (type != com.sparsity.sparksee.gdb.Type.InvalidType) { return new SparkseeEdge(this, longId); } } catch (Exception e) { // If any exception was thrown (Number format or sparksee exceptions are not handled) or // the object type is InvalidType return null } return null; }
public Edge getEdge(final Object id) { if (null == id) throw ExceptionFactory.edgeIdCanNotBeNull(); try { return new RexsterEdge(RestHelper.getResultObject(this.graphURI + RexsterTokens.SLASH_EDGES_SLASH + RestHelper.encode(id)), this); } catch (Exception e) { return null; } }
public OrientEdge getEdge(final Object id) { if (null == id) throw ExceptionFactory.edgeIdCanNotBeNull();
@Override public TitanEdge getEdge(Object id) { if (id == null) throw ExceptionFactory.edgeIdCanNotBeNull(); RelationIdentifier rid = null; try { if (id instanceof TitanEdge) rid = (RelationIdentifier) ((TitanEdge) id).getId(); else if (id instanceof RelationIdentifier) rid = (RelationIdentifier) id; else if (id instanceof String) rid = RelationIdentifier.parse((String) id); else if (id instanceof long[]) rid = RelationIdentifier.get((long[]) id); else if (id instanceof int[]) rid = RelationIdentifier.get((int[]) id); } catch (IllegalArgumentException e) { return null; } if (rid != null) return rid.findEdge(this); else return null; }
throw ExceptionFactory.edgeIdCanNotBeNull();
@Override public Edge getEdge(Object id) { if (id == null) { throw ExceptionFactory.edgeIdCanNotBeNull();
@Override public Edge getEdge(Object id) { if (id == null) { throw ExceptionFactory.edgeIdCanNotBeNull();