Esempio n. 1
0
 public function __construct(GenericDAO $dao)
 {
     parent::__construct($dao);
     if (($cache = Cache::me()) instanceof WatermarkedPeer) {
         $watermark = $cache->mark($this->className)->getActualWatermark();
     } else {
         $watermark = null;
     }
     $this->classKey = $this->keyToInt($watermark . $this->className);
     $this->handler = $this->spawnHandler($this->classKey);
 }
Esempio n. 2
0
 protected function makeQueryKey(SelectQuery $query, $suffix)
 {
     return parent::makeQueryKey($query, $suffix) . self::KEY_POSTFIX;
 }
Esempio n. 3
0
 public function __construct(GenericDAO $dao)
 {
     parent::__construct($dao);
     $this->indexKey = $this->watermark . $this->className . self::SUFFIX_INDEX;
 }
Esempio n. 4
0
 protected function makeQueryKey(SelectQuery $query, $suffix)
 {
     return parent::makeQueryKey($query, $suffix) . $this->getLayerId();
 }