Inherits DBConnection.
Inherited by DBConnectionMySQLImpl, and DBConnectionPostgreSQLImpl.
Public Member Functions | |
| __construct (PDO $pdo, $dbType, $settings) | |
| getDefaultSettings () | |
| getPDO () | |
| getDbType () | |
| getNamingStrategy () | |
| setNamingStrategy (NamingStrategy $namingStrategy) | |
| load ($className, $id) | |
| loadAll ($className) | |
| find ($className, array $params, array $orders=[]) | |
| update ($obj) | |
| save ($obj) | |
| delete ($obj, $className=NULL) | |
| close () | |
| beginTransaction () | |
| commit () | |
| rollBack () | |
| executeFind ($className, $qureyFactory, $methodName, $parameters) | |
| executeCount ($className, $qureyFactory, $methodName, $parameters) | |
| executeCustomFind ($className, $qureyFactory, $methodName, array $parameters, array $queryTypeParameters) | |
| executeCustomCount ($className, $qureyFactory, $methodName, array $parameters, array $queryTypeParameters) | |
| executeDelete ($className, $qureyFactory, $methodName, $parameters) | |
| executeUpdate ($className, $queryFactory, $methodName, $parameters) | |
| paginate ($className, PaginatorFactory $paginatorFactory, PaginatorConfig $config) | |
| fetchObject ($className, $statement) | |
| fetchObjectArray ($className, $statement) | |
| getClassDesctiption ($className) | |
| getPropertyDescriptions (ClassDescription $classDescription, $propertyDefinitions, $propertyTypes) | |
| __toString () | |
| getDaoImplCacheDir () | |
| vygenerovane gettery a settery More... | |
| setDaoImplCacheDir ($daoImplCacheDir) | |
Public Member Functions inherited from DBConnection | |
| delete ($obj) | |
Protected Member Functions | |
| createInsertSQLString (ClassDescription $classDescription) | |
| getLastInsertedId (PDO $pdo, PDOStatement $statement) | |
| bindSerializedValue ($classDescription, $statement, $obj, $propertyName) | |
| getSqlStatemetCache ($className) | |
| isInFileStorage (File $file) | |
Protected Attributes | |
| $pdo | |
| $dbType | |
| $namingStrategy | |
| $classDescriptions = [] | |
| $sqlStatementsCache = [] | |
| $objectCache = [] | |
| $accessabeFileDir = NULL | |
| $hiddenFilesDir = NULL | |
| $daoImplCacheDir = NULL | |
| $missingFileFilePath = NULL | |
| $settings = NULL | |
Obsahuje slopecnou logiku sdilenou mezi vsemi dbPripojenumi
| __construct | ( | PDO | $pdo, |
| $dbType, | |||
| $settings | |||
| ) |
| __toString | ( | ) |
| beginTransaction | ( | ) |
zapocne transakci
Implements DBConnection.
|
protected |
do statementu nastavi hodnotu parametru
| type | $classDescription | |
| type | $statement | |
| type | $obj | |
| type | $propertyName |
| close | ( | ) |
closes connection an frees all cashed data
Implements DBConnection.
| commit | ( | ) |
commituje transakci
Implements DBConnection.
|
abstractprotected |
vytvori string pro insert do tabulty pro tridu definovanou pomoci $classDescription
| ClassDescription | $classDescription | trida pro kterou se ma vytvorit sql |
| delete | ( | $obj, | |
$className = NULL |
|||
| ) |
| executeCount | ( | $className, | |
| $qureyFactory, | |||
| $methodName, | |||
| $parameters | |||
| ) |
provede count
| class | $className | |
| string | $methodName | |
| array | $parameters |
| executeCustomCount | ( | $className, | |
| $qureyFactory, | |||
| $methodName, | |||
| array | $parameters, | ||
| array | $queryTypeParameters | ||
| ) |
vyt
| string | $className | jmeno tridy nad kterou se provadi dotaz |
| type | $qureyFactory | |
| type | $methodName | |
| array | $parameters | |
| array | $queryTypeParameters | puvodne bylo na slozeni order by, ale spis budou obecne jakekoli parametry potrebne pro slozeni dotazu |
| Exception |
| executeCustomFind | ( | $className, | |
| $qureyFactory, | |||
| $methodName, | |||
| array | $parameters, | ||
| array | $queryTypeParameters | ||
| ) |
provede find dotaz
| class | $className | |
| string | $methodName | |
| array | $parameters |
| executeDelete | ( | $className, | |
| $qureyFactory, | |||
| $methodName, | |||
| $parameters | |||
| ) |
provede delete dotaz
| type | $className | |
| type | $methodName | |
| type | $parameters |
| executeFind | ( | $className, | |
| $qureyFactory, | |||
| $methodName, | |||
| $parameters | |||
| ) |
| string | class | $className | |
| QueryFactory | array | $qureyFactory | |
| string | $methodName | |
| array | $parameters |
| executeUpdate | ( | $className, | |
| $queryFactory, | |||
| $methodName, | |||
| $parameters | |||
| ) |
provede update dotaz
| type | $className | |
| type | $methodName | |
| type | $parameters |
| fetchObject | ( | $className, | |
| $statement | |||
| ) |
fetches one object from PDO statement result
| class | $className | |
| PDOStatement | $statement |
| fetchObjectArray | ( | $className, | |
| $statement | |||
| ) |
vrati pole objektu
| type | $className | |
| type | $statement |
| find | ( | $className, | |
| array | $params, | ||
| array | $orders = [] |
||
| ) |
| class | $className | |
| array | $params | Parametry |
Implements DBConnection.
| getClassDesctiption | ( | $className | ) |
vrati popis tridy, ulozi ho pokud neexistuje
| class | $className |
| getDaoImplCacheDir | ( | ) |
vygenerovane gettery a settery
| getDbType | ( | ) |
| getDefaultSettings | ( | ) |
TODO: melo by se presunout do konstruktoru
|
abstractprotected |
vraci vygenerovane id posledniho vlozene zaznamu
| PDO | $pdo | pdo db pripojeni |
| PDOStatement | $statement | statement ktery byl vykonan |
| getNamingStrategy | ( | ) |
| getPDO | ( | ) |
TODO docasne, melo by se odstranit a odstinit zbytek aplikace od PDO
|
abstract |
|
protected |
| class | $className |
|
protected |
vraci ture pokud je soubor v db storage
| File | $file |
| load | ( | $className, | |
| $id | |||
| ) |
Implements DBConnection.
| loadAll | ( | $className | ) |
Implements DBConnection.
| paginate | ( | $className, | |
| PaginatorFactory | $paginatorFactory, | ||
| PaginatorConfig | $config | ||
| ) |
| rollBack | ( | ) |
rollbackuje transakci
Implements DBConnection.
| save | ( | $obj | ) |
Implements DBConnection.
| setDaoImplCacheDir | ( | $daoImplCacheDir | ) |
| setNamingStrategy | ( | NamingStrategy | $namingStrategy | ) |
| NamingStrategy | $namingStrategy |
Implements DBConnection.
| update | ( | $obj | ) |
Implements DBConnection.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |