Relationship
Definição da configuração do objeto Relation para configurar relacionamentos entre tabelas com Join.
getColumn
getColumn() : string
Description
Returns the name of the column that will be used in the relationship.
Return
( string )
The name of the column.
getSubRelations
getSubRelations() : Values | DataSchema | java.util.Map
Description
Returns the sub relationships of the current object.
Return
( Values | DataSchema | java.util.Map )
The sub relationships
getTableName
getTableName() : string
Description
Returns the name of the table to be related.
Return
( string )
The name of the table.
getType
getType() : org.netuno.tritao.db.form.join.RelationshipType
Description
Returns the type of the relationship.
Return
( org.netuno.tritao.db.form.join.RelationshipType )
The type of the relationship.
getWhere
getWhere() : Where
Description
Returns the filter settings.
Return
( Where )
The filter settings.
join
join(relation: Relationship) : Relationship
Description
Defines a second level of INNER JOIN relationship on the current object.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
relation | Relationship | Second level INNER JOIN relationship. |
Return
( Relationship )
Current Relation object.
leftJoin
leftJoin(relation: Relationship) : Relationship
Description
Defines a second level of LEFT JOIN relationship on the current object.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
relation | Relationship | Second level LEFT JOIN relationship. |
Return
( Relationship )
Current Relation object.
rightJoin
rightJoin(relation: Relationship) : Relationship
Description
Defines a second level of RIGHT JOIN relationship on the current object.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
relation | Relationship | Second level RIGHT JOIN relationship. |
Return
( Relationship )
Current Relation object.
setColumn
setColumn(column: string) : Relationship
Description
Defines the name of the column that will be used in the relationship.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
column | string | The name of the column |
Return
( Relationship )
Current Relation object.