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

TSqlInsert extends TSqlStatement
in package

Provides an Interface to create an INSERT statement

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

__construct()  : mixed
Constructor method
getEntity()  : mixed
Returns the database entity name
getInstruction()  : mixed
Returns the INSERT plain statement
getPreparedVars()  : mixed
Return the prepared vars
setCriteria()  : mixed
this method doesn't exist in this class context
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

__construct()

Constructor method

public __construct() : mixed

getEntity()

Returns the database entity name

public final getEntity() : mixed

getInstruction()

Returns the INSERT plain statement

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

Return a prepared Statement

getPreparedVars()

Return the prepared vars

public getPreparedVars() : mixed

setCriteria()

this method doesn't exist in this class context

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

A TCriteria object, specifiyng the filters

Tags
exception

Exception in any case

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