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

        return (int) $results[0];
    }