Skip to content

Package: SoqlConstants$Functions

SoqlConstants$Functions

nameinstructionbranchcomplexitylinemethod
SoqlConstants.Functions()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package cz.cvut.kbss.jopa.query.soql;
2:
3: /**
4: * Constants of the Semantic Object Query Language (SOQL).
5: */
6: public class SoqlConstants {
7:
8: /**
9: * {@code DISTINCT} operator.
10: */
11: public static final String DISTINCT = "DISTINCT";
12:
13: /**
14: * {@code IN} operator.
15: */
16: public static final String IN = "IN";
17:
18: /**
19: * {@code NOT IN} operator.
20: */
21: public static final String NOT_IN = "NOT IN";
22:
23: /**
24: * {@code NOT} operator.
25: */
26: public static final String NOT = "NOT";
27:
28: /**
29: * SPARQL shortcut for {@code rdf:type} - {@code a}.
30: */
31: public static final String RDF_TYPE = "a";
32:
33: /**
34: * SOQL variable prefix.
35: * <p>
36: * Same as in JPQL.
37: */
38: public static final char VARIABLE_PREFIX = ':';
39:
40: /**
41: * Supported SOQL functions.
42: */
43: public static class Functions {
44:
45: /**
46: * Takes an argument string and transforms it to lower case.
47: */
48: public static final String LOWER = "LOWER";
49:
50: /**
51: * Takes an argument string and transforms it to upper case.
52: */
53: public static final String UPPER = "UPPER";
54:
55: /**
56: * Counts the number of elements.
57: */
58: public static final String COUNT = "COUNT";
59:
60: /**
61: * Returns the length of a string.
62: */
63: public static final String LENGTH = "LENGTH";
64:
65: /**
66: * Returns the absolute value of the argument.
67: */
68: public static final String ABS = "ABS";
69:
70: /**
71: * Returns the smallest number with no fractional part that is not less than the argument.
72: */
73: public static final String CEIL = "CEIL";
74:
75: /**
76: * Returns the largest number with no fractional part that is not greater than the argument.
77: */
78: public static final String FLOOR = "FLOOR";
79:
80: private Functions() {
81: throw new AssertionError();
82: }
83: }
84:
85: private SoqlConstants() {
86: throw new AssertionError();
87: }
88: }