blob: e4fa990a7e105bc6d1c5a4d1d4823f2b6b196105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package org.onap.so.client.aai.entities;
import org.onap.so.client.graphinventory.GraphInventoryObjectName;
public class __ {
protected __() {
}
public static <A> DSLQueryBuilder<A, A> identity() {
return new DSLQueryBuilder<>();
}
public static <A> DSLQueryBuilder<A, A> start(DSLNode node) {
return new DSLQueryBuilder<>(node);
}
public static DSLQueryBuilder<DSLNode, DSLNode> node(GraphInventoryObjectName name) {
return __.<DSLNode>start(new DSLNode(name));
}
public static DSLQueryBuilder<DSLNode, DSLNode> node(GraphInventoryObjectName name, DSLNodeKey... key) {
return __.<DSLNode>start(new DSLNode(name, key));
}
public static DSLNodeKey key(String keyName, String... value) {
return new DSLNodeKey(keyName, value);
}
public static <A, B> DSLQueryBuilder<A, B> union(final DSLQueryBuilder<?, B>... traversal) {
return __.<A>identity().union(traversal);
}
public static <A> DSLQueryBuilder<A, A> where(DSLQueryBuilder<A, A> traversal) {
return __.<A>identity().where(traversal);
}
}
|