|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.sqls.impl.ColumnImpl
Implementation of a column.
Nested Class Summary | |
static class |
ColumnImpl.NameImpl
|
static class |
ColumnImpl.TypeImpl
|
Nested classes inherited from class net.sf.jaxme.sqls.Column |
Column.Name, Column.Type |
Constructor Summary | |
protected |
ColumnImpl(Table pTable,
Column.Name pName,
Column.Type pType)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.Long |
getLength()
If the column has fixed length: Returns the columns length. |
Column.Name |
getName()
Returns the columns name. |
java.lang.String |
getQName()
Returns the columns fully qualified name, which is getTable().getQName() + "." + getName() . |
Table |
getTable()
Returns the columns table. |
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 |
isPrimaryKeyPart()
Returns whether this column is part of the primary key. |
boolean |
isStringColumn()
Returns whether this Column may be casted to a StringColumn . |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ColumnImpl(Table pTable, Column.Name pName, Column.Type pType)
Method Detail |
public Table getTable()
Column
Returns the columns table.
getTable
in interface Column
public Column.Name getName()
Column
Returns the columns name.
getName
in interface Column
public java.lang.String getQName()
Column
Returns the columns fully qualified name, which is
getTable().getQName() + "." + getName()
.
getQName
in interface Column
public Column.Type getType()
Column
Returns the columns type.
getType
in interface Column
public boolean isNullable()
Column
Returns whether the column is nullable. By default columns are not nullable.
isNullable
in interface Column
public void setNullable(boolean pNullable)
Column
Sets whether the column is nullable. By default columns are not nullable.
setNullable
in interface Column
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean isPrimaryKeyPart()
Column
Returns whether this column is part of the primary key.
isPrimaryKeyPart
in interface Column
public boolean hasFixedLength()
StringColumn
Returns whether the column has fixed or variable length.
hasFixedLength
in interface StringColumn
public boolean isStringColumn()
Column
Returns whether this Column may be casted to a StringColumn
.
isStringColumn
in interface Column
public boolean isBinaryColumn()
Column
Returns whether this Column may be casted to a BinaryColumn
.
isBinaryColumn
in interface Column
public void setLength(java.lang.Long pLength)
StringColumn
If the column has fixed length: Sets the columns length. Otherwise sets the columns maximum length.
setLength
in interface StringColumn
public void setLength(long pLength)
StringColumn
Shortcut for setLength(new Integer(pLength))
.
setLength
in interface StringColumn
public java.lang.Long getLength()
StringColumn
If the column has fixed length: Returns the columns length. Otherwise returns the columns maximum length.
getLength
in interface StringColumn
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |