function GetLastInsertId()
	{
		$id = null;
		
		if ($this->ConnectionSetting->IsReadOnlySlave && $this->_masterAdapter) {
			$id = $this->_masterAdapter->GetLastInsertId();
		}
		else {
			$this->RequireConnection();
			$this->Observe("DataAdapter ($this->_label) GetLastInsertId", OBSERVE_QUERY);
			$id = $this->_driver->GetLastInsertId($this->_dbconn);
		}
		
		return $id;
	}