Interface JPAPath
- All Superinterfaces:
Comparable<JPAPath>
A path within an JPA entity to an attribute.
- Author:
- Oliver Grande
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()External unique identifier for a path.getLeaf()getPath()booleanignore()booleanisPartOfGroups(List<String> groups)Returns true in case the leaf of the path is part of one of the provided groups or none of the path elements is annotated with EdmVisibleFor.Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
PATH_SEPERATOR
- See Also:
- Constant Field Values
-
-
Method Details
-
getAlias
String getAlias()External unique identifier for a path. Two path are seen as equal if they have the same alias- Returns:
-
getDBFieldName
String getDBFieldName()- Returns:
- the name of the data base table/view column of the leaf of a path
-
getLeaf
JPAAttribute getLeaf()- Returns:
- the last element of a path
-
getPath
List<JPAElement> getPath()- Returns:
- all elements of a path
-
ignore
boolean ignore()- Returns:
- true if the leaf of the path shall be ignored
-
isPartOfGroups
Returns true in case the leaf of the path is part of one of the provided groups or none of the path elements is annotated with EdmVisibleFor. The leaf is seen as a member of a group in case its EdmVisibleFor annotation contains the group or the groups is mentioned at any other element of the path.
Note: Based on this inheritance of EdmVisibleFor a path is seen as inconsistent if multiple elements are annotated and the difference of the set of groups is not empty.- Returns:
-