Class DefinedStatement
Neues Delete-Statement aus einer Definition erstellen. Dies hat den Vorteil, das man eine Datenbankdefinition unabhängig vom Treiber erstellen kann und die Klasse DefinedStatement sich um die Erstelleung des Konkreten SQL-Statements kümmert.
Der nachfolgen Code erstellt z.B. die SQL-Abfrage:
DELETE FROM testTable WHERE a=4
$this->object = new DefinedStatement((new \Alvine\Persistence\Relation\Definition()) ->append(new \Alvine\Persistence\Relation\Field\Varchar('testTable', 'a'))); $this->object->where(new \Alvine\Persistence\Relation\SQL\Where('a=4'));
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Persistence\Relation\Statement
- Alvine\Persistence\Relation\PreparedStatement
- Alvine\Persistence\Relation\SQL\Delete\DefinedStatement
Namespace: Alvine\Persistence\Relation\SQL\Delete
Package: Alvine\Persistence\Relation\SQL\Delete
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20130809
Link: Alvine
Located at persistence/relation/sql/delete/DefinedStatement.class.php
Package: Alvine\Persistence\Relation\SQL\Delete
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20130809
Link: Alvine
Located at persistence/relation/sql/delete/DefinedStatement.class.php
public
|
#
__construct(
Erstellt ein neues Insert-Statment |
protected
Alvine\Persistence\Relation\SQL\DefinedStatement
|
|
public
Alvine\Persistence\Relation\SQL\DefinedStatement
|
getDefinition(),
getValidNamedParameter()
|
__toString()
|
__call(),
__clone(),
__get(),
__set(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
string |
DELETEFROM
DELETE FROM |
#
'DELETE FROM'
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$definition
|
$statement
|
$hash,
$properties
|