protected function criteria() {
		$where = array();
		foreach ($this->getIdentity() as $col => $val) {
			if (isset($val)) {
				$where["$col="] = $val;
			} else {
				$where["$col IS"] = new QueryExpr("NULL");
			}
		}
		return $where;
	}