Skip to main content

Relationship

Definição da configuração do objeto Relation para configurar relacionamentos entre tabelas com Join.


getAlias​


getAlias() : string​

Return​

( string )


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​

( 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​
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.


setAlias​


setAlias(alias: string) : Relationship​

Attributes​
NAMETYPEDESCRIPTION
aliasstring
Return​

( Relationship )


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: Values | DataSchema | java.util.Map) : Relationship​

Description​

Defines the sub relationships of the current object.

Attributes​
NAMETYPEDESCRIPTION
subRelationsjava.util.Mapthe 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.


where​


where(where: Where) : Relationship​

Description​

Defines the filter settings.

Attributes​
NAMETYPEDESCRIPTION
whereWhereThe filter settings.
Return​

( Relationship )

Current Relation object.