org.apache.ws.jaxme.sqls.impl
Class AbstractColumn
java.lang.Object
org.apache.ws.jaxme.sqls.impl.AbstractColumn
- BinaryColumn, Column, StringColumn
public abstract class AbstractColumn
extends java.lang.Object
boolean | equals(Object o)
|
Object | getCustomData() - Allows the user to retrieve application specific data, which has
previously been attached to the column.
|
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(Object pCustomData) - Allows the user to attach application specific data to the column.
|
void | setLength(Long pLength) - If the column has fixed length: Sets the columns length.
|
void | setLength(long pLength) - Shortcut for
setLength(new Integer(pLength)) .
|
void | setNullable(boolean pNullable) - Sets whether the column is nullable.
|
equals
public boolean equals(Object o)
getCustomData
public Object getCustomData()
Allows the user to retrieve application specific data, which has
previously been attached to the column.
- getCustomData in interface Column
hashCode
public int hashCode()
isNullable
public boolean isNullable()
Returns whether the column is nullable. By default columns are not
nullable.
- isNullable in interface Column
setCustomData
public void setCustomData(Object pCustomData)
Allows the user to attach application specific data to the column.
- setCustomData in interface Column
setLength
public void setLength(Long pLength)
If the column has fixed length: Sets the columns length.
Otherwise sets the columns maximum length.
- setLength in interface StringColumn
- setLength in interface BinaryColumn
setNullable
public void setNullable(boolean pNullable)
Sets whether the column is nullable. By default columns are not
nullable.
- setNullable in interface Column