public final class ImmutableColumn extends AbstractColumn implements Serializable
ImmutableSchema
,
Serialized FormModifier | 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, toString
public 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()
Column
getColumnNumber
in interface Column
public ColumnType getType()
Column
public Table getTable()
Column
public Boolean isNullable()
Column
isNullable
in interface Column
public String getRemarks()
Column
getRemarks
in interface Column
public Integer getColumnSize()
Column
getColumnSize
in interface Column
public String getNativeType()
Column
getNativeType
in interface Column
public boolean isIndexed()
Column
public String getName()
Column
public boolean isPrimaryKey()
Column
isPrimaryKey
in interface Column
public String getQuote()
NamedStructure
getQuote
in interface NamedStructure
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.