public ConsumerQueryLinksRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, OEntityId sourceEntity, String targetNavProp) { super(client, serviceRootUri, metadata, OEntityIds.toKeyString(sourceEntity)); this.targetNavProp = targetNavProp; }
public ConsumerQueryLinksRequest(ODataClient client, String serviceRootUri, EdmDataServices metadata, OEntityId sourceEntity, String targetNavProp) { super(client, serviceRootUri, metadata, OEntityIds.toKeyString(sourceEntity)); this.targetNavProp = targetNavProp; }
/** * Determines equality of two entity ids. Ids are equal if their key strings are equal. * * @param lhs the first entity id * @param rhs the second entity id * @return whether or not the ids are equal */ public static boolean equals(OEntityId lhs, OEntityId rhs) { if (lhs == null) return rhs == null; return toKeyString(lhs).equals(toKeyString(rhs)); }
/** * Determines equality of two entity ids. Ids are equal if their key strings are equal. * * @param lhs the first entity id * @param rhs the second entity id * @return whether or not the ids are equal */ public static boolean equals(OEntityId lhs, OEntityId rhs) { if (lhs == null) return rhs == null; return toKeyString(lhs).equals(toKeyString(rhs)); }
/** * Determines equality of two entity ids. Ids are equal if their key strings are equal. * * @param lhs the first entity id * @param rhs the second entity id * @return whether or not the ids are equal */ public static boolean equals(OEntityId lhs, OEntityId rhs) { if (lhs == null) return rhs == null; return toKeyString(lhs).equals(toKeyString(rhs)); }
public static SingleLink create(String serviceRootUri, OEntityId entity) { String uri = serviceRootUri; if (!uri.endsWith("/")) uri += "/"; uri += OEntityIds.toKeyString(entity); return create(uri); }
public static SingleLink create(String serviceRootUri, OEntityId entity) { String uri = serviceRootUri; if (!uri.endsWith("/")) uri += "/"; uri += OEntityIds.toKeyString(entity); return create(uri); }
protected SingleLink toSingleLink(OEntityId entity) { String uri = getServiceRootUri(); if (!uri.endsWith("/")) uri += "/"; uri += OEntityIds.toKeyString(entity); return SingleLinks.create(uri); }
protected SingleLink toSingleLink(OEntityId entity) { String uri = getServiceRootUri(); if (!uri.endsWith("/")) uri += "/"; uri += OEntityIds.toKeyString(entity); return SingleLinks.create(uri); }