mirror of https://github.com/apache/openjpa.git
OPENJPA-1686: Define generic persistent graph and relation. Implement graph as a set of edges.
Fix compile errors git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@955581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
832b5048bd
commit
dbaf9fa67e
|
@ -103,7 +103,6 @@ public class RelationGraph<E> extends PersistentGraph<E> {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public <V extends E> Set<Relation<V, E>> getRelationsFrom(V source) {
|
public <V extends E> Set<Relation<V, E>> getRelationsFrom(V source) {
|
||||||
Set<Relation<V,E>> rs = new HashSet<Relation<V,E>>();
|
Set<Relation<V,E>> rs = new HashSet<Relation<V,E>>();
|
||||||
for (Relation<E,E> r : relations) {
|
for (Relation<E,E> r : relations) {
|
||||||
|
@ -113,7 +112,6 @@ public class RelationGraph<E> extends PersistentGraph<E> {
|
||||||
return rs;
|
return rs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public <V extends E> Set<Relation<E, V>> getRelationsTo(V target) {
|
public <V extends E> Set<Relation<E, V>> getRelationsTo(V target) {
|
||||||
Set<Relation<E, V>> rs = new HashSet<Relation<E, V>>();
|
Set<Relation<E, V>> rs = new HashSet<Relation<E, V>>();
|
||||||
for (Relation<?,?> r : relations) {
|
for (Relation<?,?> r : relations) {
|
||||||
|
@ -123,7 +121,6 @@ public class RelationGraph<E> extends PersistentGraph<E> {
|
||||||
return rs;
|
return rs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Set<E> getSources(Object target) {
|
public Set<E> getSources(Object target) {
|
||||||
Set<E> sources = new HashSet<E>();
|
Set<E> sources = new HashSet<E>();
|
||||||
for (Relation<E,E> r : relations) {
|
for (Relation<E,E> r : relations) {
|
||||||
|
@ -133,7 +130,6 @@ public class RelationGraph<E> extends PersistentGraph<E> {
|
||||||
return sources;
|
return sources;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Set<E> getTargets(Object source) {
|
public Set<E> getTargets(Object source) {
|
||||||
Set<E> targets = new HashSet<E>();
|
Set<E> targets = new HashSet<E>();
|
||||||
for (Relation<E,E> r : relations) {
|
for (Relation<E,E> r : relations) {
|
||||||
|
|
Loading…
Reference in New Issue