public function next($sequence)
    {
        // execute in transaction
        $results = $this->_connection
            ->transaction(array($this,'_nextSequence'), strtoupper($sequence))
            ->execute();

        return (int) $results[0];
    }
public function next($sequence)
    {
        // execute in transaction
        $results = $this->_connection
            ->transaction(array($this,'_nextSequence'), strtoupper($sequence))
            ->execute();

        return (int) $results[0];
    }
public function next ( $ sequence ) { // execute in transaction $ results = $ this -> _connection -> transaction ( array ( $ this , '_nextSequence' ) , strtoupper ( $ sequence ) ) -> execute ( ) ; return ( int ) $ results [ 0 ] ; }
Returns the next integer in the sequence
Returns the next integer in the sequence