base class for all factory classes generated by the dao compiler
| package |
jelix |
|---|---|
| subpackage |
dao |
_callbackBool( $value)
_callbackQuote( $value)
| since | 1.2 |
|---|---|
_callbackQuoteBin( $value)
| since | 1.2 |
|---|---|
_getPkWhereClauseForNonSelect(array $pk) : string
arrayassociated array : keys = primary key name, values : value of a primary key
stringa 'where' clause (WHERE mypk = 'myvalue' ...)
_getPkWhereClauseForSelect(array $pk) : string
arrayassociated array : keys = primary key name, values : value of a primary key
stringa 'where' clause (WHERE mypk = 'myvalue' ...)
_prepareValue( $value, $fieldType, $notNull = false)
countAll() : integer
integerthe count
countBy(\jDaoConditions $searchcond, $distinct = null) : integer
| author |
Loic Mathaud |
|---|---|
| contributor |
Steven Jehannet |
| copyright |
2007 Loic Mathaud |
| since | 1.0b2 |
\jDaoConditions
integerthe count
deleteBy(\jDaoConditions $searchcond) : \number
findBy(\jDaoConditions $searchcond, integer $limitOffset, integer $limitCount = null) : \jDbResultSet
you can limit the number of results by given an offset and a count
\jDaoConditions
integer
integer
\jDbResultSet
finishInitResultSet(\jDbResultSet $rs)
getPrimaryKeyNames() : array
| since | 1.0beta3 |
|---|---|
arraylist of properties name which contains primary keys
getPrimaryTable() : string
| since | 1.3.2 |
|---|---|
stringthe id (alias or realname) of the primary table
getProperties() : array
keys are property name, and values are an array like that :
array ( 'name' => 'name of property', 'fieldName' => 'name of fieldname', 'regExp' => NULL, // or the regular expression to test the value 'required' => true/false, 'isPK' => true/false, //says if it is a primary key 'isFK' => true/false, //says if it is a foreign key 'datatype' => '', // type of data : string 'unifiedType'=> '' // the corresponding unified type 'table' => 'grp', // alias of the table the property is attached to 'updatePattern' => '%s', 'insertPattern' => '%s', 'selectPattern' => '%s', 'sequenceName' => '', // name of the sequence when field is autoincrement 'maxlength' => NULL, // or a number 'minlength' => NULL, // or a number 'ofPrimaryTable' => true/false 'autoIncrement'=> true/false )
| since | 1.0beta3 |
|---|---|
arrayinformations on all properties
getTables() : array
insert(\jDaoRecordBase $record) : integer
integer1 if success (the number of affected rows). False if the query has failed.
update(\jDaoRecordBase $record) : integer
integer1 if success (the number of affected rows). False if the query has failed.
_tables : array
Keys of elements are the alias of the table. values are arrays like that :
array ( 'name' => ' the table alias', 'realname' => 'the real name of the table', 'pk' => array ( list of primary keys name ), 'fields' => array ( list of property name attached to this table ) )
| var |
|---|
array
_primaryTable : string
| var |
|---|
string
_selectClause : string
| var |
|---|
string
_fromClause : string
| var |
|---|
string
_whereClause : string
| var |
|---|
string
_DaoRecordClassName : string
| var |
|---|
string
_daoSelector : string
| var |
|---|
string
_deleteBeforeEvent :
| since | |
|---|---|
_deleteAfterEvent :
| since | |
|---|---|
_deleteByBeforeEvent :
| since | |
|---|---|
_deleteByAfterEvent :
| since | |
|---|---|
trueValue :
| since | |
|---|---|
falseValue :
| since | |
|---|---|