public function getColumnByName($name)
    {
        foreach ($this->columns as $column) {
            if (strcmp($column->name, $name) === 0) {
                return $column;
            }
        }
        return null;
    }