public function getResource($type, &$name)
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $name;
            case DbResourceTypes::TYPE_TABLE:
                $this->loadTable($name);

                return $name;
            case DbResourceTypes::TYPE_VIEW:
                $this->loadView($name);

                return $name;
            case DbResourceTypes::TYPE_PROCEDURE:
                $this->loadProcedure($name);

                return $name;
            case DbResourceTypes::TYPE_FUNCTION:
                $this->loadFunction($name);

                return $name;
            default:
                return null;
        }
    }