Package com.pullreports.model
Class Relationship
- Object
-
- com.pullreports.model.Relationship
-
public abstract class Relationship extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Relationship(RelationshipConfiguration configuration, Table childTable, Table parentTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<AccessControlVoter>
getAccessControlVoter()
Cardinality
getCardinality()
Table
getChildTable()
Join
getJoin()
Table
getParentTable()
boolean
hasToManyAncestor()
Returns true if this Relationship has at least one ancestorRelationship
that is ofCardinality.MANY
.
-
-
-
Constructor Detail
-
Relationship
protected Relationship(RelationshipConfiguration configuration, Table childTable, Table parentTable)
-
-
Method Detail
-
getCardinality
public Cardinality getCardinality()
-
getJoin
public Join getJoin()
-
getChildTable
public Table getChildTable()
-
getParentTable
public Table getParentTable()
-
getAccessControlVoter
public Optional<AccessControlVoter> getAccessControlVoter()
-
hasToManyAncestor
public boolean hasToManyAncestor()
Returns true if this Relationship has at least one ancestorRelationship
that is ofCardinality.MANY
.- Returns:
- true if the Relationship has at least one ancestor of Cardinality MANY.
-
-