com.scalar.db.sql.ColumnDefinition Maven / Gradle / Ivy
package com.scalar.db.sql;
import java.util.Optional;
/** Metadata about a column of the {@link ResultSet}. */
public interface ColumnDefinition {
/**
* Returns the name of the namespace of the table.
*
* @return the name of the namespace of the table or empty if not applicable
*/
Optional getNamespaceName();
/**
* Returns the name of the table of the column.
*
* @return the name of the table of the column or empty if not applicable
*/
Optional getTableName();
/**
* Returns the name of the column.
*
* @return the name of the column
*/
String getColumnName();
/**
* Returns the data type of the column.
*
* @return the data type of the column
*/
DataType getDataType();
}