* @param $onlyKeys Only use these keys for a cache key
* @return void
*/
- protected function queryInsertDataSet (StoreableCriteria $dataSetInstance, $onlyKeys = array()) {
+ protected function queryInsertDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = array()) {
// First get a key suitable for our cache and extend it with this class name
$cacheKey = $this->getCacheKeyByCriteria($dataSetInstance, $onlyKeys);
//* DEBUG: */ $this->debugOutput('BASE-WRAPPER: Using cache key ' . $cacheKey . ' for purging ...');
* @param $onlyKeys Only use these keys for a cache key
* @return void
*/
- protected function queryUpdateDataSet (StoreableCriteria $dataSetInstance, $onlyKeys = array()) {
+ protected function queryUpdateDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = array()) {
// First get a key suitable for our cache and extend it with this class name
$cacheKey = $this->getCacheKeyByCriteria($dataSetInstance, $onlyKeys);
//* DEBUG: */ $this->debugOutput('BASE-WRAPPER: Using cache key ' . $cacheKey . ' for purging ...');
$this->getDatabaseInstance()->queryUpdateDataSet($dataSetInstance);
}
+ /**
+ * Getter for index key
+ *
+ * @return $indexKey Index key
+ */
+ public final function getIndexKey () {
+ return $this->getDatabaseInstance()->getIndexKey();
+ }
+
/**
* Do a "select" query on the current table with the given search criteria and
* store it in cache for later usage
* @param $onlyKeys Only use these keys for a cache key
* @return $resultInstance An instance of a database result class
*/
- public function doSelectByCriteria (Criteria $criteriaInstance, $onlyKeys = array()) {
+ public function doSelectByCriteria (Criteria $criteriaInstance, array $onlyKeys = array()) {
// First get a key suitable for our cache and extend it with this class name
$cacheKey = $this->getCacheKeyByCriteria($criteriaInstance, $onlyKeys);