API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TSqlUpdate extends TSqlStatement
in package

Provides an Interface to create UPDATE statements

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$criteria  : mixed
$entity  : mixed
$sql  : mixed
$columnValues  : mixed
$preparedVars  : mixed

Methods

getEntity()  : mixed
Returns the database entity name
getInstruction()  : mixed
Returns the UPDATE plain statement
getPreparedVars()  : mixed
Return the prepared vars
setCriteria()  : mixed
Define a select criteria
setEntity()  : mixed
defines the database entity name
setRowData()  : mixed
Assign values to the database columns
unsetRowData()  : mixed
Unset row data
getRandomParameter()  : mixed
Returns a random parameter
transform()  : Transformed
Transform the value according to its PHP type before send it to the database

Properties

Methods

getEntity()

Returns the database entity name

public final getEntity() : mixed

getInstruction()

Returns the UPDATE plain statement

public getInstruction([ $prepared = FALSE ]) : mixed
Parameters
$prepared : = FALSE

Return a prepared Statement

getPreparedVars()

Return the prepared vars

public getPreparedVars() : mixed

setCriteria()

Define a select criteria

public setCriteria( $criteria) : mixed
Parameters
$criteria :

An TCriteria object, specifiyng the filters

setEntity()

defines the database entity name

public final setEntity( $entity) : mixed
Parameters
$entity :

Name of the database entity

setRowData()

Assign values to the database columns

public setRowData( $column,  $value) : mixed
Parameters
$column :

Name of the database column

$value :

Value for the database column

unsetRowData()

Unset row data

public unsetRowData( $column) : mixed
Parameters
$column :

Name of the database column

getRandomParameter()

Returns a random parameter

protected getRandomParameter() : mixed

transform()

Transform the value according to its PHP type before send it to the database

private transform( $value[,  $prepared = FALSE ]) : Transformed
Parameters
$value :

Value to be transformed

$prepared : = FALSE

If the value will be prepared

Return values
Transformed

Value


        
On this page

Search results