Skip to main content

Operation

Definição da configuração do objeto Operation para operações em base de dados.


all


all() : java.util.List

Description

Returns all records resulting from query execution, if none, returns an empty list.

Return

( java.util.List )

List of records.


debug


debug(enabled: boolean) : Operation

Description

Defines whether debug is active or not in the query.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether the debug is active or not.
Return

( Operation )

Current Query object.


delete


delete() : Values

Return

( Values )


delete(forms: [Ljava.lang.String;[]) : Values

Attributes
NAMETYPEDESCRIPTION
forms[Ljava.lang.String;[]
Return

( Values )


distinct


distinct(enabled: boolean) : Operation

Description

Defines whether the DISTINCT command will be applied to the query.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it will be applied or not.
Return

( Operation )

Current Query object.


first


first() : Values

Description

Returns the first record resulting from the query execution, if none, returns null.

Return

( Values )

First record of the result.


get


get(column: string) : Operation

Attributes
NAMETYPEDESCRIPTION
columnstring
Return

( Operation )


get(column: string, alias: string) : Operation

Attributes
NAMETYPEDESCRIPTION
columnstring
aliasstring
Return

( Operation )


getFields


getFields() : java.util.List

Description

Returns the fields that will be obtained in the query

Return

( java.util.List )

The fields that will be obtained in the query


getFormName


getFormName() : string

Description

Returns the name of the query's main table.

Return

( string )

The name of the query's main table.


getGroup


getGroup() : Group

Description

Returns the query grouping object.

Return

( Group )

The query grouping object.


getJoin


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

Description

Returns the Join objects (related tables) referring to the main table of the query.

Return

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

The Join objects (related tables) referring to the main table of the query.


getLimit


getLimit() : int

Return

( int )


getOrder


getOrder() : Order

Description

Returns the query ordering object.

Return

( Order )

The query ordering object.


getPagination


getPagination() : org.netuno.tritao.db.form.pagination.Pagination

Description

Returns the pagination configuration object (if any) of the query.

Return

( org.netuno.tritao.db.form.pagination.Pagination )

The pagination configuration object (if any) of the query.


getTablesToPopulate


getTablesToPopulate() : java.util.List

Return

( java.util.List )


getWhere


getWhere() : Where

Description

Returns the Where object referring to the main table of the query.

Return

( Where )

Where object of the query's main table.


group


group(order: string) : Operation

Description

Defines the query grouping object.

Attributes
NAMETYPEDESCRIPTION
orderstringThe query grouping object.
Return

( Operation )

Current Query object.


insert


insert() : Values

Return

( Values )


isDebug


isDebug() : boolean

Description

Returns whether debug is active or not in the query.

Return

( boolean )

Whether debug is active or not in the query.


isDistinct


isDistinct() : boolean

Description

Returns whether the DISTINCT command will be applied to the query.

Return

( boolean )

Whether it will be applied or not.


join


join(relation: Relationship) : Operation

Description

Defines an INNER JOIN relationship with a table.

Attributes
NAMETYPEDESCRIPTION
relationRelationshipINNER JOIN type relationship.
Return

( Operation )

Current Query object.


leftJoin


leftJoin(relation: Relationship) : Operation

Description

Defines an LEFT JOIN relationship with a table.

Attributes
NAMETYPEDESCRIPTION
relationRelationshipLEFT JOIN type relationship.
Return

( Operation )

Current Query object.


limit


limit(limit: int) : Operation

Attributes
NAMETYPEDESCRIPTION
limitint
Return

( Operation )



Description

Defines a form to be related to the main table of the query using the Link criteria.

Attributes
NAMETYPEDESCRIPTION
formLinkstringForm to be related.
Return

( Operation )

Current Query object.


Description

Defines a form to be related to the main table of the query using the Link criteria.

Attributes
NAMETYPEDESCRIPTION
formLinkstringForm to be related.
linkLinkLink object with a subrelation.
Return

( Operation )

Current Query object.


Description

Defines a form to be related to the main table of the query using the Link criteria.

Attributes
NAMETYPEDESCRIPTION
formLinkstringForm to be related.
whereWhereWhere object with the conditions referring to the form you want to relate.
Return

( Operation )

Current Query object.


Description

Defines a form to be related to the main table of the query using the Link criteria.

Attributes
NAMETYPEDESCRIPTION
formLinkstringForm to be related.
whereWhereWhere object with the conditions referring to the form you want to relate.
linkLinkLink object with a subrelation.
Return

( Operation )

Current Query object.


order


order(column: string, order: string) : Operation

Description

Defines the ordering of the query.

Attributes
NAMETYPEDESCRIPTION
columnstringColumn for sorting.
orderstringMeaning of ordering.
Return

( Operation )

Current Query object.


page


page(pagination: org.netuno.tritao.db.form.pagination.Pagination) : Values

Description

Returns Page with the items resulting from executing the query in a paged form and other pagination data.

Attributes
NAMETYPEDESCRIPTION
paginationorg.netuno.tritao.db.form.pagination.PaginationPagination object with pagination settings.
Return

( Values )

Page with items and other pagination data.


populate


populate(table: string, filter: org.netuno.tritao.db.form.Field) : Operation

Attributes
NAMETYPEDESCRIPTION
tablestring
filterorg.netuno.tritao.db.form.Field
Return

( Operation )


populate(table: string, filter: org.netuno.tritao.db.form.Field, fields: java.util.List) : Operation

Attributes
NAMETYPEDESCRIPTION
tablestring
filterorg.netuno.tritao.db.form.Field
fieldsjava.util.List
Return

( Operation )


rightJoin


rightJoin(relation: Relationship) : Operation

Description

Defines an RIGHT JOIN relationship with a table.

Attributes
NAMETYPEDESCRIPTION
relationRelationshipRIGHT JOIN type relationship.
Return

( Operation )

Current Query object.


set


set(column: string, value: java.lang.Object) : Operation

Attributes
NAMETYPEDESCRIPTION
columnstring
valuejava.lang.Object
Return

( Operation )


setDebug


setDebug(enabled: boolean) : Operation

Description

Defines whether debug is active or not in the query.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether the debug is active or not.
Return

( Operation )

Current Query object.


setDistinct


setDistinct(enabled: boolean) : Operation

Description

Defines whether the DISTINCT command will be applied to the query.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it will be applied or not.
Return

( Operation )

Current Query object.


setFields


setFields(fields: java.util.List) : Operation

Description

Defines the fields that will be obtained in the query

Attributes
NAMETYPEDESCRIPTION
fieldsjava.util.ListThe fields that will be obtained in the query.
Return

( Operation )

Current Query object.


setFormName


setFormName(tableName: string) : Operation

Description

Defines the name of the query's main table.

Attributes
NAMETYPEDESCRIPTION
tableNamestringThe name of the query's main table.
Return

( Operation )

Current Query object.


setGroup


setGroup(order: Group) : Operation

Description

Defines the query grouping object.

Attributes
NAMETYPEDESCRIPTION
orderGroupThe query grouping object.
Return

( Operation )

Current Query object.


setJoin


setJoin(join: Config | Exec | Header | Req | Res | Values | DataSchema) : Operation

Description

Defines the Join objects (related tables) referring to the main table of the query.

Attributes
NAMETYPEDESCRIPTION
joinConfig | Exec | Header | Req | Res | Values | DataSchemaThe Join objects (related tables) referring to the main table of the query.
Return

( Operation )

Current Query object.


setLimit


setLimit(limit: int) : Operation

Attributes
NAMETYPEDESCRIPTION
limitint
Return

( Operation )


setOrder


setOrder(order: Order) : Operation

Description

Defines the query ordering object.

Attributes
NAMETYPEDESCRIPTION
orderOrderThe query ordering object.
Return

( Operation )

Current Query object.


setPagination


setPagination(pagination: org.netuno.tritao.db.form.pagination.Pagination) : Operation

Description

Defines the pagination configuration object (if any) of the query.

Attributes
NAMETYPEDESCRIPTION
paginationorg.netuno.tritao.db.form.pagination.Paginationthe pagination configuration object of the query.
Return

( Operation )

Current Query object.


setTablesToPopulate


setTablesToPopulate(tablesToPopulate: java.util.List) : Operation

Attributes
NAMETYPEDESCRIPTION
tablesToPopulatejava.util.List
Return

( Operation )


setWhere


setWhere(where: Where) : Operation

Description

Defines the Where object referring to the main table of the query.

Attributes
NAMETYPEDESCRIPTION
whereWhereWhere object of the query's main table.
Return

( Operation )

Current Query object.


update


update() : Values

Return

( Values )


where


where(where: Where) : Operation

Description

Defines the Where object referring to the main table of the query.

Attributes
NAMETYPEDESCRIPTION
whereWhereWhere object of the query's main table.
Return

( Operation )

Current Query object.