db
DBConnectionPostgreSQLImpl Class Reference

Inherits DBConnectionCommon, and DBConnection.

Public Member Functions

 __construct ($host, $dbName, $login, $password, $accessabeFileDir, $hiddenFilesDir, array $settings=["codepage"=> 'utf8'])
 
 getPropertyDescriptions (ClassDescription $classDescription, $propertyDefinitions, $propertyTypes)
 
- Public Member Functions inherited from DBConnectionCommon
 __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)
 

Public Attributes

const DB_NAME = "PostgreSQL"
 

Protected Member Functions

 createInsertSQLString (ClassDescription $classDescription)
 
 getLastInsertedId (PDO $pdo, PDOStatement $statement)
 
 getPropertyDescriptionByProperityDefinition (ClassDescription $classDescription, AbstractDefinition $propertyDefinition, $propertyName, $columnName)
 
 getPropertyDescriptionByDataType (ClassDescription $classDescription, $propertyType, $propertyName, $columnName, $columnDataType, $notNull)
 
- Protected Member Functions inherited from DBConnectionCommon
 createInsertSQLString (ClassDescription $classDescription)
 
 getLastInsertedId (PDO $pdo, PDOStatement $statement)
 
 bindSerializedValue ($classDescription, $statement, $obj, $propertyName)
 
 getSqlStatemetCache ($className)
 
 isInFileStorage (File $file)
 

Protected Attributes

 $insertNewIdIdentifier = "newid"
 
- Protected Attributes inherited from DBConnectionCommon
 $pdo
 
 $dbType
 
 $namingStrategy
 
 $classDescriptions = []
 
 $sqlStatementsCache = []
 
 $objectCache = []
 
 $accessabeFileDir = NULL
 
 $hiddenFilesDir = NULL
 
 $daoImplCacheDir = NULL
 
 $missingFileFilePath = NULL
 
 $settings = NULL
 

Detailed Description

Connector for PostgreSQL

Constructor & Destructor Documentation

◆ __construct()

__construct (   $host,
  $dbName,
  $login,
  $password,
  $accessabeFileDir,
  $hiddenFilesDir,
array  $settings = ["codepage" =,
'utf8']   
)

Member Function Documentation

◆ createInsertSQLString()

createInsertSQLString ( ClassDescription  $classDescription)
protected

◆ getLastInsertedId()

getLastInsertedId ( PDO  $pdo,
PDOStatement  $statement 
)
protected

vraci vygenerovane id posledniho vlozene zaznamu

Parameters
PDO$pdopdo db pripojeni
PDOStatement$statementstatement ktery byl vykonan
Returns
id

◆ getPropertyDescriptionByDataType()

getPropertyDescriptionByDataType ( ClassDescription  $classDescription,
  $propertyType,
  $propertyName,
  $columnName,
  $columnDataType,
  $notNull 
)
protected

◆ getPropertyDescriptionByProperityDefinition()

getPropertyDescriptionByProperityDefinition ( ClassDescription  $classDescription,
AbstractDefinition  $propertyDefinition,
  $propertyName,
  $columnName 
)
protected
Parameters
AbstractDefinition$propertyDefinition
string$propertyName
string$columnName
Returns
AbstractPropertyDescription

◆ getPropertyDescriptions()

getPropertyDescriptions ( ClassDescription  $classDescription,
  $propertyDefinitions,
  $propertyTypes 
)

Member Data Documentation

◆ $insertNewIdIdentifier

$insertNewIdIdentifier = "newid"
protected

◆ DB_NAME

const DB_NAME = "PostgreSQL"

name of DB


The documentation for this class was generated from the following file: