Skip to main content

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() : Config | Exec | Header | Req | Res | Values | DataSchema

Description

Returns the sub relationships of the current object.

Return

( Config | Exec | Header | Req | Res | Values | DataSchema )

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
NAMETYPEDESCRIPTION
relationRelationshipSecond 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
NAMETYPEDESCRIPTION
relationRelationshipSecond 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
NAMETYPEDESCRIPTION
relationRelationshipSecond 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
NAMETYPEDESCRIPTION
columnstringThe name of the column
Return

( Relationship )

Current Relation object.


setSubRelations


setSubRelations(subRelations: Config | Exec | Header | Req | Res | Values | DataSchema) : Relationship

Description

Defines the sub relationships of the current object.

Attributes
NAMETYPEDESCRIPTION
subRelationsConfig | Exec | Header | Req | Res | Values | DataSchemathe sub relationships.
Return

( Relationship )

Current Relation object.


setTableName


setTableName(tableName: string) : Relationship

Description

Defines the name of the table to be related.

Attributes
NAMETYPEDESCRIPTION
tableNamestringThe name of the table
Return

( Relationship )

Current Relation object.


setType


setType(type: org.netuno.tritao.db.form.join.RelationshipType) : Relationship

Description

Defines the type of the relationship.

Attributes
NAMETYPEDESCRIPTION
typeorg.netuno.tritao.db.form.join.RelationshipTypeThe type of the relationship.
Return

( Relationship )

Current Relation object.


setWhere


setWhere(where: Where) : Relationship

Description

Defines the filter settings.

Attributes
NAMETYPEDESCRIPTION
whereWhereThe filter settings.
Return

( Relationship )

Current Relation object.