Public Member Functions | |
take (Identifiable $object) | |
add (Identifiable $object) | |
save (Identifiable $object) | |
import (Identifiable $object) | |
merge (Identifiable $object, $cacheOnly=true) | |
unite (Identifiable $object, Identifiable $old) | |
Private Member Functions | |
targetizeUpdateQuery (UpdateQuery $query, Identifiable $object) |
Definition at line 15 of file StorableDAO.class.php.
StorableDAO::add | ( | Identifiable $ | object | ) |
Definition at line 25 of file StorableDAO.class.php.
References DBPool::getByDao(), GenericDAO::inject(), OSQL::insert(), and Identifiable::setId().
Referenced by take().
StorableDAO::import | ( | Identifiable $ | object | ) |
Definition at line 47 of file StorableDAO.class.php.
References GenericDAO::inject(), and OSQL::insert().
StorableDAO::merge | ( | Identifiable $ | object, | |
$ | cacheOnly = true | |||
) |
Definition at line 56 of file StorableDAO.class.php.
References GenericDAO::checkObjectType(), Identifiable::getId(), Assert::isNotNull(), save(), unite(), and Cache::worker().
Referenced by take().
StorableDAO::save | ( | Identifiable $ | object | ) |
Definition at line 38 of file StorableDAO.class.php.
References GenericDAO::inject(), targetizeUpdateQuery(), and OSQL::update().
Referenced by merge().
StorableDAO::take | ( | Identifiable $ | object | ) |
Definition at line 17 of file StorableDAO.class.php.
References add(), Identifiable::getId(), and merge().
StorableDAO::targetizeUpdateQuery | ( | UpdateQuery $ | query, | |
Identifiable $ | object | |||
) | [private] |
Definition at line 117 of file StorableDAO.class.php.
References Expression::eqId(), GenericDAO::getIdName(), and QuerySkeleton::where().
Referenced by save(), and unite().
StorableDAO::unite | ( | Identifiable $ | object, | |
Identifiable $ | old | |||
) |
way to skip pointless update and hack for recursive comparsion.
Definition at line 74 of file StorableDAO.class.php.
References GenericDAO::doInject(), Identifiable::getId(), GenericDAO::getProtoClass(), GenericDAO::getTable(), Assert::isNotNull(), Assert::isTypelessEqual(), targetizeUpdateQuery(), and OSQL::update().
Referenced by merge().