-
Notifications
You must be signed in to change notification settings - Fork 14
/
QueryAttribute.java
37 lines (32 loc) · 1.04 KB
/
QueryAttribute.java
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
package cz.cvut.kbss.jopa.model.metamodel;
import cz.cvut.kbss.jopa.NonJPA;
import cz.cvut.kbss.jopa.UnusedJPA;
import cz.cvut.kbss.jopa.model.annotations.ParticipationConstraint;
/**
* Represents an attribute of a Java type that is defined by a query.
*
* @param <X> The represented type that contains the attribute
* @param <Y> The type of the represented attribute
*/
public interface QueryAttribute<X, Y> extends FieldSpecification<X, Y> {
/**
* Return the entire query as inserted into {@link cz.cvut.kbss.jopa.model.annotations.Sparql}.
*
* @return Query defining this attribute
*/
@NonJPA
String getQuery();
/**
* Return the java.lang.reflect.Member for the represented attribute.
*
* @return corresponding java.lang.reflect.Member
*/
@UnusedJPA
java.lang.reflect.Member getJavaMember();
/**
* Returns participation constraints specified for this attribute.
*
* @return Array of participation constraints
*/
ParticipationConstraint[] getConstraints();
}