|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.schema.AbstractColumn
org.eobjects.metamodel.schema.ImmutableColumn
public final class ImmutableColumn
Immutable implementation of the Column interface. It is not intended to be instantiated on it's own. Rather, use the constructor in ImmutableSchema.
ImmutableSchema,
Serialized Form| Constructor Summary | |
|---|---|
protected |
ImmutableColumn(Column column,
org.eobjects.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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eobjects.metamodel.schema.AbstractColumn |
|---|
compareTo, equals, getQualifiedLabel, getQuotedName, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 not
public 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 to
protected ImmutableColumn(Column column,
org.eobjects.metamodel.schema.ImmutableTable table)
| Method Detail |
|---|
public int getColumnNumber()
Column
getColumnNumber in interface Columnpublic ColumnType getType()
Column
getType in interface Columnpublic Table getTable()
Column
getTable in interface Columnpublic Boolean isNullable()
Column
isNullable in interface Columnpublic String getRemarks()
Column
getRemarks in interface Columnpublic Integer getColumnSize()
Column
getColumnSize in interface Columnpublic String getNativeType()
Column
getNativeType in interface Columnpublic boolean isIndexed()
Column
isIndexed in interface Columnpublic String getName()
Column
getName in interface ColumngetName in interface NamedStructuregetName in interface HasNamepublic boolean isPrimaryKey()
Column
isPrimaryKey in interface Columnpublic String getQuote()
NamedStructure
getQuote in interface NamedStructure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||