TSqlMultiInsert
extends TSqlStatement
in package
Provides an Interface to create an MULTI INSERT statement
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor method
- addRowValues() : mixed
- Add a row data
- getEntity() : mixed
- Returns the database entity name
- getInstruction() : mixed
- Returns the INSERT plain statement
- setCriteria() : mixed
- this method doesn't exist in this class context
- setEntity() : mixed
- defines the database entity name
- getRandomParameter() : mixed
- Returns a random parameter
- transform() : Transformed
- Transform the value according to its PHP type before send it to the database
Properties
$criteria
protected
mixed
$criteria
$entity
protected
mixed
$entity
$sql
protected
mixed
$sql
$rows
private
mixed
$rows
Methods
__construct()
Constructor method
public
__construct() : mixed
addRowValues()
Add a row data
public
addRowValues(mixed $row) : mixed
Parameters
- $row : mixed
-
Row data
getEntity()
Returns the database entity name
public
final getEntity() : mixed
getInstruction()
Returns the INSERT plain statement
public
getInstruction([mixed $prepared = FALSE ]) : mixed
Parameters
- $prepared : mixed = FALSE
-
Return a prepared Statement
setCriteria()
this method doesn't exist in this class context
public
setCriteria(mixed $criteria) : mixed
Parameters
- $criteria : mixed
-
A TCriteria object, specifiyng the filters
Tags
setEntity()
defines the database entity name
public
final setEntity(mixed $entity) : mixed
Parameters
- $entity : mixed
-
Name of the database entity
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(mixed $value) : Transformed
Parameters
- $value : mixed
-
Value to be transformed
Return values
Transformed —Value