// Path: src/main/java/com/github/cassandra/jdbc/CassandraUtils.java
// public static final String EMPTY_STRING = "";


import java.sql.ResultSetMetaData;
import static com.github.cassandra.jdbc.CassandraUtils.EMPTY_STRING;
import com.google.common.base.Strings;
/**
 * Copyright (C) 2015-2017, Zhichun Wu
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package com.github.cassandra.jdbc;




/**
 * This defines a column in Cassandra.
 *
 * @author Zhichun Wu
 */
public class CassandraColumnDefinition {
    protected final String catalog;
    protected final String cqlType;
    protected final Class<?> javaType;
    protected final String label;
    protected final String name;
    protected final int precision;
    protected final int scale;
    protected final String schema;
    protected final boolean searchable;
    protected final int sqlType;
    protected final String table;
    protected final boolean writable;

    public CassandraColumnDefinition(String schema, String table, String name,
                                     String type, boolean searchable) {
        this(schema, table, name, name, type, searchable, false);
    }

    public CassandraColumnDefinition(String schema, String table, String name,
                                     String label, String type, boolean searchable, boolean writable) {
// Path: src/main/java/com/github/cassandra/jdbc/CassandraUtils.java
// public static final String EMPTY_STRING = "";


// Path: src/main/java/com/github/cassandra/jdbc/CassandraColumnDefinition.java
import java.sql.ResultSetMetaData;
import static com.github.cassandra.jdbc.CassandraUtils.EMPTY_STRING;
import com.google.common.base.Strings;

/**
 * Copyright (C) 2015-2017, Zhichun Wu
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package com.github.cassandra.jdbc;




/**
 * This defines a column in Cassandra.
 *
 * @author Zhichun Wu
 */
public class CassandraColumnDefinition {
    protected final String catalog;
    protected final String cqlType;
    protected final Class<?> javaType;
    protected final String label;
    protected final String name;
    protected final int precision;
    protected final int scale;
    protected final String schema;
    protected final boolean searchable;
    protected final int sqlType;
    protected final String table;
    protected final boolean writable;

    public CassandraColumnDefinition(String schema, String table, String name,
                                     String type, boolean searchable) {
        this(schema, table, name, name, type, searchable, false);
    }

    public CassandraColumnDefinition(String schema, String table, String name,
                                     String label, String type, boolean searchable, boolean writable) {
        this.catalog = EMPTY_STRING;