public class MutableColumn extends AbstractColumn implements Serializable
MutableTable
,
Relationship
,
Serialized FormConstructor and Description |
---|
MutableColumn() |
MutableColumn(String name) |
MutableColumn(String name,
ColumnType type) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Boolean nullable) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote) |
MutableColumn(String name,
Table table) |
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.
|
MutableColumn |
setColumnNumber(int columnNumber) |
MutableColumn |
setColumnSize(Integer columnSize) |
MutableColumn |
setIndexed(boolean indexed) |
MutableColumn |
setName(String name) |
MutableColumn |
setNativeType(String nativeType) |
MutableColumn |
setNullable(Boolean nullable) |
MutableColumn |
setPrimaryKey(boolean primaryKey) |
MutableColumn |
setQuote(String quoteString) |
MutableColumn |
setRemarks(String remarks) |
MutableColumn |
setTable(Table table) |
MutableColumn |
setType(ColumnType type) |
compareTo, equals, getQualifiedLabel, getQuotedName, hashCode, toString
public MutableColumn()
public MutableColumn(String name)
public MutableColumn(String name, ColumnType type)
public MutableColumn(String name, ColumnType type, Table table, int columnNumber, Boolean nullable)
public MutableColumn(String name, ColumnType type, Table table, int columnNumber, Integer columnSize, String nativeType, Boolean nullable, String remarks, boolean indexed, String quote)
public int getColumnNumber()
Column
getColumnNumber
in interface Column
public MutableColumn setColumnNumber(int columnNumber)
public String getName()
Column
public MutableColumn setName(String name)
public ColumnType getType()
Column
public MutableColumn setType(ColumnType type)
public Table getTable()
Column
public MutableColumn setTable(Table table)
public Boolean isNullable()
Column
isNullable
in interface Column
public MutableColumn setNullable(Boolean nullable)
public String getRemarks()
Column
getRemarks
in interface Column
public MutableColumn setRemarks(String remarks)
public Integer getColumnSize()
Column
getColumnSize
in interface Column
public MutableColumn setColumnSize(Integer columnSize)
public String getNativeType()
Column
getNativeType
in interface Column
public MutableColumn setNativeType(String nativeType)
public boolean isIndexed()
Column
public MutableColumn setIndexed(boolean indexed)
public String getQuote()
NamedStructure
getQuote
in interface NamedStructure
public MutableColumn setQuote(String quoteString)
public boolean isPrimaryKey()
Column
isPrimaryKey
in interface Column
public MutableColumn setPrimaryKey(boolean primaryKey)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.