public final class ImmutableColumn extends AbstractColumn implements Serializable
ImmutableSchema,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableColumn(Column column,
org.apache.metamodel.schema.ImmutableTable table) |
|
ImmutableColumn(Column column,
Table table)
Constructs an
ImmutableColumn based on an existing column and a
table. |
|
ImmutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote,
boolean primaryKey)
Constructs a new
ImmutableColumn. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Returns the column number or index.
|
Integer |
getColumnSize()
Gets the data type size of this column.
|
String |
getName()
Gets the name of this Column
|
String |
getNativeType()
Gets the native type of this column.
|
String |
getQuote()
Gets an optional quote string that is used to enclose the name of this
structure.
|
String |
getRemarks()
Gets any remarks/comments to this column.
|
Table |
getTable()
Gets the table for which this column belong
|
ColumnType |
getType()
Gets the type of the column
|
boolean |
isIndexed()
Determines if this column is indexed.
|
Boolean |
isNullable()
Determines whether or not this column accepts null values.
|
boolean |
isPrimaryKey()
Determines if this column is (one of) the primary key(s) of its table.
|
compareTo, equals, getQualifiedLabel, getQuotedName, hashCode, toStringpublic ImmutableColumn(String name, ColumnType type, Table table, int columnNumber, Integer columnSize, String nativeType, Boolean nullable, String remarks, boolean indexed, String quote, boolean primaryKey)
ImmutableColumn.name - the name of the columntype - the type of the columntable - the table which the constructed column will pertain tocolumnNumber - the column number of the columncolumnSize - the size of the columnnativeType - the native type of the columnnullable - whether the column's values are nullableremarks - the remarks of the columnindexed - whether the column is indexed or notquote - the quote character(s) of the columnprimaryKey - whether the column is a primary key or notpublic ImmutableColumn(Column column, Table table)
ImmutableColumn based on an existing column and a
table.column - the column to immitatetable - the table that the constructed column will pertain toprotected ImmutableColumn(Column column, org.apache.metamodel.schema.ImmutableTable table)
public int getColumnNumber()
ColumngetColumnNumber in interface Columnpublic ColumnType getType()
Columnpublic Table getTable()
Columnpublic Boolean isNullable()
ColumnisNullable in interface Columnpublic String getRemarks()
ColumngetRemarks in interface Columnpublic Integer getColumnSize()
ColumngetColumnSize in interface Columnpublic String getNativeType()
ColumngetNativeType in interface Columnpublic boolean isIndexed()
Columnpublic String getName()
Columnpublic boolean isPrimaryKey()
ColumnisPrimaryKey in interface Columnpublic String getQuote()
NamedStructuregetQuote in interface NamedStructureCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.