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;
	}
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;
	}
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 ; }
Returns last auto-inserted Id.
If this is a read-only slave and a write operation was made to a Master Delegate
then the last insert id from that connection will be returned

@access public
@return int
Returns last auto - inserted Id . If this is a read - only slave and a write operation was made to a Master Delegate then the last insert id from that connection will be returned