public abstract class AbstractColumn extends java.lang.Object implements Column, StringColumn, BinaryColumn
Column.Name, Column.Type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractColumn(Column.Name pName,
Column.Type pType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getCustomData()
Allows the user to retrieve application specific data, which has
previously been attached to the column.
|
java.lang.Long |
getLength()
If the column has fixed length: Returns the columns length.
|
Column.Name |
getName()
Returns the columns name.
|
Column.Type |
getType()
Returns the columns type.
|
boolean |
hasFixedLength()
Returns whether the column has fixed or variable length.
|
int |
hashCode() |
boolean |
isBinaryColumn()
Returns whether this Column may be casted to a
BinaryColumn. |
boolean |
isNullable()
Returns whether the column is nullable.
|
boolean |
isStringColumn()
Returns whether this Column may be casted to a
StringColumn. |
void |
setCustomData(java.lang.Object pCustomData)
Allows the user to attach application specific data to the column.
|
void |
setLength(long pLength)
Shortcut for
setLength(new Integer(pLength)). |
void |
setLength(java.lang.Long pLength)
If the column has fixed length: Sets the columns length.
|
void |
setNullable(boolean pNullable)
Sets whether the column is nullable.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetQName, getTable, isPrimaryKeyPart, isVirtualprotected AbstractColumn(Column.Name pName, Column.Type pType)
public Column.Name getName()
ColumnReturns the columns name.
public Column.Type getType()
ColumnReturns the columns type.
public boolean isNullable()
ColumnReturns whether the column is nullable. By default columns are not nullable.
isNullable in interface Columnpublic void setNullable(boolean pNullable)
ColumnSets whether the column is nullable. By default columns are not nullable.
setNullable in interface Columnpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean hasFixedLength()
StringColumnReturns whether the column has fixed or variable length.
hasFixedLength in interface BinaryColumnhasFixedLength in interface StringColumnpublic boolean isStringColumn()
ColumnReturns whether this Column may be casted to a StringColumn.
isStringColumn in interface Columnpublic boolean isBinaryColumn()
ColumnReturns whether this Column may be casted to a BinaryColumn.
isBinaryColumn in interface Columnpublic void setLength(java.lang.Long pLength)
StringColumnIf the column has fixed length: Sets the columns length. Otherwise sets the columns maximum length.
setLength in interface BinaryColumnsetLength in interface StringColumnpublic void setLength(long pLength)
StringColumnShortcut for setLength(new Integer(pLength)).
setLength in interface BinaryColumnsetLength in interface StringColumnpublic java.lang.Long getLength()
StringColumnIf the column has fixed length: Returns the columns length. Otherwise returns the columns maximum length.
getLength in interface BinaryColumngetLength in interface StringColumnpublic java.lang.Object getCustomData()
ColumnAllows the user to retrieve application specific data, which has previously been attached to the column.
getCustomData in interface Columnpublic void setCustomData(java.lang.Object pCustomData)
ColumnAllows the user to attach application specific data to the column.
setCustomData in interface Column