java.lang.Object
io.ebeaninternal.server.deploy.meta.DeployTableJoin
Represents a join to another table during deployment phase.
This gets converted into a immutable TableJoin when complete.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a join pairvoidaddJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil util, boolean order, jakarta.persistence.JoinColumn[] jcArray, BeanTable beanTable) Add a JoinColumn array.voidaddJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil deploy, boolean order, jakarta.persistence.JoinColumn jc, BeanTable beanTable) Add a JoinColumnvoidaddJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil util, boolean order, Set<jakarta.persistence.JoinColumn> joinColumns, BeanTable beanTable) Add a JoinColumn set.voidclear()Clear the join columns due to an implied mappedBy.columns()Return the join columns.voidcopyTo(DeployTableJoin destJoin, boolean reverse, String tableName) voidcopyWithoutType(DeployTableJoin destJoin, boolean reverse, String tableName) createInverse(String tableName) Returns the clause of an extra @Where annotation.getTable()Return the joined table name.getType()Return the type of join.booleanReturn true if the JoinOnPair have been set.voidsetColumns(DeployTableJoinColumn[] cols, boolean reverse) Copy all the columns to this join potentially reversing the columns.voidsetExtraWhere(String extraWhere) voidset the joined table name.voidsetType(SqlJoinType type) toString()
-
Constructor Details
-
DeployTableJoin
public DeployTableJoin()Create a DeployTableJoin.
-
-
Method Details
-
toString
-
hasJoinColumns
public boolean hasJoinColumns()Return true if the JoinOnPair have been set. -
setColumns
Copy all the columns to this join potentially reversing the columns. -
addJoinColumn
Add a join pair -
addJoinColumn
public void addJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil deploy, boolean order, jakarta.persistence.JoinColumn jc, BeanTable beanTable) Add a JoinColumnThe order is generally true for OneToMany and false for ManyToOne relationships.
-
addJoinColumn
public void addJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil util, boolean order, jakarta.persistence.JoinColumn[] jcArray, BeanTable beanTable) Add a JoinColumn array. -
addJoinColumn
public void addJoinColumn(io.ebeaninternal.server.deploy.parse.DeployUtil util, boolean order, Set<jakarta.persistence.JoinColumn> joinColumns, BeanTable beanTable) Add a JoinColumn set. -
columns
Return the join columns. -
getTable
Return the joined table name. -
setTable
set the joined table name. -
getType
Return the type of join. LEFT OUTER JOIN etc. -
setType
-
getExtraWhere
Returns the clause of an extra @Where annotation. -
setExtraWhere
-
createInverse
-
copyTo
-
copyWithoutType
-
clear
public void clear()Clear the join columns due to an implied mappedBy.Effectively prior to clear this was considered a unidirectional OneToMany and the foreign key was defined by naming convention. Clearing this means that it uses the foreign key as defined by the implied mappedBy property (the only ManyToOne that maps back to the parent (that holds the OneToMany).
-