public function getSql() { if ($this->_sql === null) { $this->_sql = $this->_buildSql(); } return $this->_sql; }