public static function resolveSequenceName()
    {
        if (Driver::$primary_key_behaviour != Driver::PRIMARY_KEY_SEQUENCE) {
            return null;
        }

        $name = self::getSequenceName();
        if ($name) {
            return $name;
        }
        
        $table = strtolower(self::getTableName());
        $pk    = self::getPK();

        // need to deal with specific databases here. can't open the Driver
        // class and rewrite the method like we do in Ruby
        switch (Driver::$name) {
        case "oracle":
            $suffix  = "_sequence";
            return $table.$suffix;
        case "postgresql":
            return "{$table}_{$pk}_seq";
        }
        return null;
    }
public static function resolveSequenceName()
    {
        if (Driver::$primary_key_behaviour != Driver::PRIMARY_KEY_SEQUENCE) {
            return null;
        }

        $name = self::getSequenceName();
        if ($name) {
            return $name;
        }
        
        $table = strtolower(self::getTableName());
        $pk    = self::getPK();

        // need to deal with specific databases here. can't open the Driver
        // class and rewrite the method like we do in Ruby
        switch (Driver::$name) {
        case "oracle":
            $suffix  = "_sequence";
            return $table.$suffix;
        case "postgresql":
            return "{$table}_{$pk}_seq";
        }
        return null;
    }
public static function resolveSequenceName ( ) { if ( Driver :: $ primary_key_behaviour != Driver :: PRIMARY_KEY_SEQUENCE ) { return null ; } $ name = self :: getSequenceName ( ) ; if ( $ name ) { return $ name ; } $ table = strtolower ( self :: getTableName ( ) ) ; $ pk = self :: getPK ( ) ; // need to deal with specific databases here. can't open the Driver // class and rewrite the method like we do in Ruby switch ( Driver :: $ name ) { case "oracle" : $ suffix = "_sequence" ; return $ table . $ suffix ; case "postgresql" : return "{$table}_{$pk}_seq" ; } return null ; }
Resolve the sequence name, if any

@return name of the sequence
Resolve the sequence name if any