|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.sqls.impl.AbstractColumn
public abstract class AbstractColumn
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
Column.Name, Column.Type |
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
Column.Name, Column.Type |
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
Column.Name, Column.Type |
Constructor Summary | |
---|---|
protected |
AbstractColumn(Column.Name pName,
Column.Type pType)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
getQName, getTable, isPrimaryKeyPart, isVirtual |
Methods inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
getQName, getTable, isPrimaryKeyPart, isVirtual |
Methods inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
getQName, getTable, isPrimaryKeyPart, isVirtual |
Constructor Detail |
---|
protected AbstractColumn(Column.Name pName, Column.Type pType)
Method Detail |
---|
public Column.Name getName()
Column
Returns the columns name.
getName
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)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasFixedLength()
BinaryColumn
Returns whether the column has fixed or variable length.
hasFixedLength
in interface BinaryColumn
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)
BinaryColumn
If the column has fixed length: Sets the columns length. Otherwise sets the columns maximum length.
setLength
in interface BinaryColumn
setLength
in interface StringColumn
public void setLength(long pLength)
BinaryColumn
Shortcut for setLength(new Integer(pLength))
.
setLength
in interface BinaryColumn
setLength
in interface StringColumn
public java.lang.Long getLength()
BinaryColumn
If the column has fixed length: Returns the columns length. Otherwise returns the columns maximum length.
getLength
in interface BinaryColumn
getLength
in interface StringColumn
public java.lang.Object getCustomData()
Column
Allows the user to retrieve application specific data, which has previously been attached to the column.
getCustomData
in interface Column
public void setCustomData(java.lang.Object pCustomData)
Column
Allows the user to attach application specific data to the column.
setCustomData
in interface Column
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |