org.apache.ws.jaxme.sqls

Interface StringColumn

public interface StringColumn extends Column

Interface of a column with datatype {@link Column.Type#CHAR} or {@link Column.Type#VARCHAR}.

Author: Jochen Wiedmann

Method Summary
LonggetLength()

If the column has fixed length: Returns the columns length.

booleanhasFixedLength()

Returns whether the column has fixed or variable length.

voidsetLength(Long pLength)

If the column has fixed length: Sets the columns length.

voidsetLength(long pLength)

Shortcut for setLength(new Integer(pLength)).

Method Detail

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)).