org.apache.ws.jaxme.sqls

Interface BinaryColumn

All Superinterfaces:
Column
Known Implementing Classes:
AbstractColumn, ColumnImpl, DB2ColumnImpl, HsqlDbColumnImpl, VirtualColumn

public interface BinaryColumn
extends Column

Interface of a column with datatype Column.Type.BINARY or Column.Type.VARBINARY.
Author:
Jochen Wiedmann

Method Summary

Long
getLength()
If the column has fixed length: Returns the columns length.
boolean
hasFixedLength()
Returns whether the column has fixed or variable length.
void
setLength(Long pLength)
If the column has fixed length: Sets the columns length.
void
setLength(long pLength)
Shortcut for setLength(new Integer(pLength)).

Methods inherited from interface org.apache.ws.jaxme.sqls.Column

getCustomData, getName, getQName, getTable, getType, isBinaryColumn, isNullable, isPrimaryKeyPart, isStringColumn, isVirtual, setCustomData, setNullable

Method Details

getLength

public Long getLength()
If the column has fixed length: Returns the columns length. Otherwise returns the columns maximum length.

hasFixedLength

public boolean hasFixedLength()
Returns whether the column has fixed or variable length.

setLength

public void setLength(Long pLength)
If the column has fixed length: Sets the columns length. Otherwise sets the columns maximum length.

setLength

public void setLength(long pLength)
Shortcut for setLength(new Integer(pLength)).