Skip to main content

ConditionalOperator

Definição da configuração do objeto Condition para construção de condições com o objeto Where


getColumn​


getColumn() : string​

Description​

Returns the name of the column to which the condition will be applied.

Return​

( string )

The name of the column to which the condition will be applied.


getOperator​


getOperator() : org.netuno.tritao.db.form.where.ConditionalOperatorType​

Description​

Returns the condition condition operator.

Return​

( org.netuno.tritao.db.form.where.ConditionalOperatorType )

The condition condition operator.


getRelationOperator​


getRelationOperator() : RelationalOperator​

Description​

Returns the relationship settings.

Return​

( RelationalOperator )

The relationship settings.


getSubCondition​


getSubCondition() : Where​

Description​

Returns the next level of conditions within the current condition.

Return​

( Where )

The next level of conditions within the current condition.


hasSubCondition​


hasSubCondition() : boolean​

Description​

Returns whether the current object has subconditions or not.

Return​

( boolean )

Whether you have it or not.


setColumn​


setColumn(column: string) : ConditionalOperator​

Description​

Defines the name of the column to which the condition will be applied.

Attributes​
NAMETYPEDESCRIPTION
columnstringThe name of the column to which the condition will be applied.
Return​

( ConditionalOperator )

Current Condition object.


setOperator​


setOperator(column: org.netuno.tritao.db.form.where.ConditionalOperatorType) : ConditionalOperator​

Description​

Defines the condition condition operator.

Attributes​
NAMETYPEDESCRIPTION
columnorg.netuno.tritao.db.form.where.ConditionalOperatorTypeThe condition condition operator.
Return​

( ConditionalOperator )

Current Condition object.


setRelationOperator​


setRelationOperator(relationOperator: RelationalOperator) : ConditionalOperator​

Description​

Defines the relationship settings.

Attributes​
NAMETYPEDESCRIPTION
relationOperatorRelationalOperatorThe relationship settings.
Return​

( ConditionalOperator )

Current Condition object.


setSubCondition​


setSubCondition(subcondition: Where) : ConditionalOperator​

Description​

Defines the next level of conditions within the current condition.

Attributes​
NAMETYPEDESCRIPTION
subconditionWhereThe next level of conditions within the current condition.
Return​

( ConditionalOperator )

Current Condition object.