PersistentManager Class Reference

List of all members.

Public Member Functions

 __construct (PersistentManagerFactory $factory)
 retrieveObject (PersistentObject $object)
 retrieveObjectFromQuery (PersistentObject $object, MQuery $query)
 retrieveObjectFromCriteria (PersistentObject $object, PersistentCriteria $criteria, $parameters=NULL)
 retrieveObjectAsProxy (PersistentObject $object)
 retrieveAssociations (PersistentObject $object)
 retrieveAssociation (PersistentObject $object, $target)
 retrieveAssociationAsCursor (PersistentObject $object, $target)
 deleteAssociation (PersistentObject $object, $target, PersistentObject $assocObject)
 saveAssociation (PersistentObject $object, $target)
 saveObject (PersistentObject $object)
 saveObjectRaw (PersistentObject $object)
 deleteObject (PersistentObject $object)
 _retrieveAssociations (PersistentObject $object, ClassMap $classMap, MDatabase $db)
 getRetrieveCriteria (PersistentObject $object)
 getDeleteCriteria (PersistentObject $object)
 processCriteriaDelete (DeleteCriteria $criteria, $parameters)
 processCriteriaAsQuery (PersistentCriteria $criteria, $parameters)
 processCriteriaAsCursor (PersistentCriteria $criteria, $parameters)
 processCriteriaAsProxyQuery (PersistentCriteria $criteria, $parameters)
 processCriteriaAsProxyCursor (PersistentCriteria $criteria, $parameters)
 getConnection ($dbName)

Private Member Functions

 execute (MDatabase $db, $commands, $transaction=NULL)
 _retrieveObject (PersistentObject $object, ClassMap $classMap, MDatabase $db, $isLock=FALSE)
 _retrieveObjectAsProxy (PersistentObject $object, ClassMap $classMap, MDatabase $db, $isLock=FALSE)
 _retrieveAssociation (PersistentObject $object, $target, ClassMap $classMap, MDatabase $db)
 _retrieveAssociationAsCursor (PersistentObject $object, $target, ClassMap $classMap, MDatabase $db)
 _deleteAssociation (PersistentObject $object, $target, PersistentObject $assocObject, &$commands, ClassMap $classMap, MDatabase $db)
 _saveAssociation (PersistentObject $object, $target, &$commands, ClassMap $classMap, MDatabase $db)
 __retrieveAssociation (PersistentObject $object, UniDirectionalAssociationMap $aMap, ClassMap $classMap, MDatabase $db)
 __deleteAssociation (PersistentObject $object, UniDirectionalAssociationMap $aMap, PersistentObject $assocObject, &$commands, ClassMap $classMap, MDatabase $db)
 __saveStraightAssociation (PersistentObject $object, UniDirectionalAssociationMap $aMap, &$commands, ClassMap $classMap, MDatabase $db)
 __saveInverseAssociation (PersistentObject $object, UniDirectionalAssociationMap $aMap, &$commands, ClassMap $classMap, MDatabase $db)
 __saveAssociation (PersistentObject $object, UniDirectionalAssociationMap $aMap, &$commands, ClassMap $classMap, MDatabase $db)
 _saveObject (PersistentObject $object, ClassMap $classMap, &$commands, MDatabase $db)
 _saveObjectRaw (PersistentObject $object, ClassMap $classMap, &$commands, MDatabase $db)
 _deleteObject (PersistentObject $object, ClassMap $classMap, &$commands, MDatabase $db)
 processCriteriaQuery (PersistentCriteria $criteria, $parameters, MDatabase $db, $forProxy=FALSE)
 processCriteriaCursor (PersistentCriteria $criteria, $parameters, MDatabase $db, $forProxy=FALSE)

Private Attributes

 $factory
 $active = FALSE
 $closed = FALSE
 $dbConnections = array()

Detailed Description

Definition at line 3 of file persistentmanager.class.


Constructor & Destructor Documentation

PersistentManager::__construct ( PersistentManagerFactory factory  ) 

Definition at line 10 of file persistentmanager.class.

References $factory.


Member Function Documentation

PersistentManager::execute ( MDatabase db,
commands,
transaction = NULL 
) [private]

Definition at line 15 of file persistentmanager.class.

Referenced by deleteAssociation(), deleteObject(), processCriteriaDelete(), saveAssociation(), saveObject(), and saveObjectRaw().

Here is the caller graph for this function:

PersistentManager::retrieveObject ( PersistentObject object  ) 

Definition at line 37 of file persistentmanager.class.

References _retrieveObject(), and getConnection().

Here is the call graph for this function:

PersistentManager::retrieveObjectFromQuery ( PersistentObject object,
MQuery query 
)

Definition at line 44 of file persistentmanager.class.

References _retrieveAssociations(), and getConnection().

Here is the call graph for this function:

PersistentManager::retrieveObjectFromCriteria ( PersistentObject object,
PersistentCriteria criteria,
parameters = NULL 
)

Definition at line 56 of file persistentmanager.class.

References _retrieveAssociations(), getConnection(), and processCriteriaQuery().

Here is the call graph for this function:

PersistentManager::retrieveObjectAsProxy ( PersistentObject object  ) 

Definition at line 68 of file persistentmanager.class.

References _retrieveObjectAsProxy(), and getConnection().

Here is the call graph for this function:

PersistentManager::retrieveAssociations ( PersistentObject object  ) 

Definition at line 75 of file persistentmanager.class.

References _retrieveAssociations(), and getConnection().

Here is the call graph for this function:

PersistentManager::retrieveAssociation ( PersistentObject object,
target 
)

Definition at line 82 of file persistentmanager.class.

References _retrieveAssociation(), and getConnection().

Here is the call graph for this function:

PersistentManager::retrieveAssociationAsCursor ( PersistentObject object,
target 
)

Definition at line 89 of file persistentmanager.class.

References _retrieveAssociationAsCursor(), and getConnection().

Here is the call graph for this function:

PersistentManager::deleteAssociation ( PersistentObject object,
target,
PersistentObject assocObject 
)

Definition at line 96 of file persistentmanager.class.

References _deleteAssociation(), execute(), and getConnection().

Here is the call graph for this function:

PersistentManager::saveAssociation ( PersistentObject object,
target 
)

Definition at line 105 of file persistentmanager.class.

References _saveAssociation(), execute(), and getConnection().

Here is the call graph for this function:

PersistentManager::saveObject ( PersistentObject object  ) 

Definition at line 114 of file persistentmanager.class.

References _saveObject(), execute(), and getConnection().

Here is the call graph for this function:

PersistentManager::saveObjectRaw ( PersistentObject object  ) 

Definition at line 123 of file persistentmanager.class.

References _saveObjectRaw(), execute(), and getConnection().

Here is the call graph for this function:

PersistentManager::deleteObject ( PersistentObject object  ) 

Definition at line 132 of file persistentmanager.class.

References _deleteObject(), execute(), and getConnection().

Here is the call graph for this function:

PersistentManager::_retrieveObject ( PersistentObject object,
ClassMap classMap,
MDatabase db,
isLock = FALSE 
) [private]

Definition at line 141 of file persistentmanager.class.

References _retrieveAssociations(), MDatabase::GetQuery(), ClassMap::getSelectSqlFor(), and ClassMap::retrieveObject().

Referenced by retrieveObject().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_retrieveObjectAsProxy ( PersistentObject object,
ClassMap classMap,
MDatabase db,
isLock = FALSE 
) [private]

Definition at line 152 of file persistentmanager.class.

References _retrieveAssociations(), MDatabase::GetQuery(), ClassMap::getSelectProxySqlFor(), and ClassMap::retrieveProxyObject().

Referenced by retrieveObjectAsProxy().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_retrieveAssociations ( PersistentObject object,
ClassMap classMap,
MDatabase db 
)

Definition at line 164 of file persistentmanager.class.

References __retrieveAssociation(), and ClassMap::getAssociationMaps().

Referenced by _retrieveObject(), _retrieveObjectAsProxy(), retrieveAssociations(), retrieveObjectFromCriteria(), and retrieveObjectFromQuery().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_retrieveAssociation ( PersistentObject object,
target,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 180 of file persistentmanager.class.

References __retrieveAssociation(), and ClassMap::getAssociationMap().

Referenced by retrieveAssociation().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_retrieveAssociationAsCursor ( PersistentObject object,
target,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 194 of file persistentmanager.class.

References ClassMap::getAssociationMap(), and processCriteriaCursor().

Referenced by retrieveAssociationAsCursor().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_deleteAssociation ( PersistentObject object,
target,
PersistentObject assocObject,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 212 of file persistentmanager.class.

References __deleteAssociation(), and ClassMap::getAssociationMap().

Referenced by deleteAssociation().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_saveAssociation ( PersistentObject object,
target,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 226 of file persistentmanager.class.

References __saveAssociation(), and ClassMap::getAssociationMap().

Referenced by saveAssociation().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::__retrieveAssociation ( PersistentObject object,
UniDirectionalAssociationMap aMap,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 240 of file persistentmanager.class.

References UniDirectionalAssociationMap::getCriteria(), UniDirectionalAssociationMap::getCriteriaParameters(), UniDirectionalAssociationMap::getIndexAttribute(), UniDirectionalAssociationMap::getOrderAttributes(), UniDirectionalAssociationMap::getTarget(), and processCriteriaCursor().

Referenced by __deleteAssociation(), _retrieveAssociation(), and _retrieveAssociations().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::__deleteAssociation ( PersistentObject object,
UniDirectionalAssociationMap aMap,
PersistentObject assocObject,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 268 of file persistentmanager.class.

References __retrieveAssociation(), UniDirectionalAssociationMap::getAssociativeClass(), UniDirectionalAssociationMap::getDirection(), UniDirectionalAssociationMap::getSize(), UniDirectionalAssociationMap::getTarget(), and ClassMap::getUpdateSqlFor().

Referenced by _deleteAssociation().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::__saveStraightAssociation ( PersistentObject object,
UniDirectionalAssociationMap aMap,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 328 of file persistentmanager.class.

References _saveObject(), UniDirectionalAssociationMap::getAssociativeClass(), UniDirectionalAssociationMap::getDirection(), UniDirectionalAssociationMap::getSize(), and UniDirectionalAssociationMap::getTarget().

Referenced by __saveAssociation(), and _saveObject().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::__saveInverseAssociation ( PersistentObject object,
UniDirectionalAssociationMap aMap,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 398 of file persistentmanager.class.

References _saveObject(), UniDirectionalAssociationMap::getSize(), and UniDirectionalAssociationMap::getTarget().

Referenced by __saveAssociation(), and _saveObject().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::__saveAssociation ( PersistentObject object,
UniDirectionalAssociationMap aMap,
&$  commands,
ClassMap classMap,
MDatabase db 
) [private]

Definition at line 429 of file persistentmanager.class.

References __saveInverseAssociation(), and __saveStraightAssociation().

Referenced by _saveAssociation().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_saveObject ( PersistentObject object,
ClassMap classMap,
&$  commands,
MDatabase db 
) [private]

Definition at line 441 of file persistentmanager.class.

References __saveInverseAssociation(), __saveStraightAssociation(), ClassMap::getInsertSqlFor(), ClassMap::getInverseAssociationMaps(), ClassMap::getKeySize(), MDatabase::GetNewId(), ClassMap::getStraightAssociationMaps(), ClassMap::getUpdateSqlFor(), PersistentObject::isPersistent(), and PersistentObject::setPersistent().

Referenced by __saveInverseAssociation(), __saveStraightAssociation(), and saveObject().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_saveObjectRaw ( PersistentObject object,
ClassMap classMap,
&$  commands,
MDatabase db 
) [private]

Definition at line 506 of file persistentmanager.class.

References ClassMap::getInsertSqlFor(), ClassMap::getKeySize(), MDatabase::GetNewId(), ClassMap::getUpdateSqlFor(), and PersistentObject::setPersistent().

Referenced by saveObjectRaw().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::_deleteObject ( PersistentObject object,
ClassMap classMap,
&$  commands,
MDatabase db 
) [private]

Definition at line 539 of file persistentmanager.class.

References ClassMap::getDeleteSqlFor(), ClassMap::getInverseAssociationMaps(), ClassMap::getStraightAssociationMaps(), and PersistentObject::setPersistent().

Referenced by deleteObject().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::processCriteriaQuery ( PersistentCriteria criteria,
parameters,
MDatabase db,
forProxy = FALSE 
) [private]

Definition at line 647 of file persistentmanager.class.

References MDatabase::GetQuery().

Referenced by processCriteriaAsProxyQuery(), processCriteriaAsQuery(), processCriteriaCursor(), and retrieveObjectFromCriteria().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::processCriteriaCursor ( PersistentCriteria criteria,
parameters,
MDatabase db,
forProxy = FALSE 
) [private]

Definition at line 655 of file persistentmanager.class.

References processCriteriaQuery().

Referenced by __retrieveAssociation(), _retrieveAssociationAsCursor(), processCriteriaAsCursor(), and processCriteriaAsProxyCursor().

Here is the call graph for this function:

Here is the caller graph for this function:

PersistentManager::getRetrieveCriteria ( PersistentObject object  ) 

Definition at line 662 of file persistentmanager.class.

PersistentManager::getDeleteCriteria ( PersistentObject object  ) 

Definition at line 669 of file persistentmanager.class.

PersistentManager::processCriteriaDelete ( DeleteCriteria criteria,
parameters 
)

Definition at line 677 of file persistentmanager.class.

References execute(), getConnection(), and DeleteCriteria::getSqlStatement().

Here is the call graph for this function:

PersistentManager::processCriteriaAsQuery ( PersistentCriteria criteria,
parameters 
)

Definition at line 686 of file persistentmanager.class.

References getConnection(), and processCriteriaQuery().

Here is the call graph for this function:

PersistentManager::processCriteriaAsCursor ( PersistentCriteria criteria,
parameters 
)

Definition at line 693 of file persistentmanager.class.

References getConnection(), and processCriteriaCursor().

Here is the call graph for this function:

PersistentManager::processCriteriaAsProxyQuery ( PersistentCriteria criteria,
parameters 
)

Definition at line 700 of file persistentmanager.class.

References getConnection(), and processCriteriaQuery().

Here is the call graph for this function:

PersistentManager::processCriteriaAsProxyCursor ( PersistentCriteria criteria,
parameters 
)

Definition at line 707 of file persistentmanager.class.

References getConnection(), and processCriteriaCursor().

Here is the call graph for this function:

PersistentManager::getConnection ( dbName  ) 

Definition at line 714 of file persistentmanager.class.

Referenced by deleteAssociation(), deleteObject(), processCriteriaAsCursor(), processCriteriaAsProxyCursor(), processCriteriaAsProxyQuery(), processCriteriaAsQuery(), processCriteriaDelete(), retrieveAssociation(), retrieveAssociationAsCursor(), retrieveAssociations(), retrieveObject(), retrieveObjectAsProxy(), retrieveObjectFromCriteria(), retrieveObjectFromQuery(), saveAssociation(), saveObject(), and saveObjectRaw().

Here is the caller graph for this function:


Member Data Documentation

PersistentManager::$factory [private]

Definition at line 5 of file persistentmanager.class.

Referenced by __construct().

PersistentManager::$active = FALSE [private]

Definition at line 6 of file persistentmanager.class.

PersistentManager::$closed = FALSE [private]

Definition at line 7 of file persistentmanager.class.

PersistentManager::$dbConnections = array() [private]

Definition at line 8 of file persistentmanager.class.


The documentation for this class was generated from the following file:
CopyLeft (L) 2001-2006 - [MIOLO Development Team] SOLIS - Cooperativa de Soluções Livres - Lajeado/RS - Brasil