org.apache.ws.jaxme.sqls.impl

Class ColumnImpl

Implemented Interfaces:
BinaryColumn, Column, StringColumn
Known Direct Subclasses:
DB2ColumnImpl, HsqlDbColumnImpl

public class ColumnImpl
extends AbstractColumn

Implementation of a column.
Author:
Jochen Wiedmann

Nested Class Summary

static class
ColumnImpl.NameImpl
static class
ColumnImpl.TypeImpl

Constructor Summary

ColumnImpl(Table pTable, Column.Name pName, Column.Type pType)

Method Summary

String
getQName()
Returns the columns fully qualified name, which is getTable().getQName() + "." + getName().
Table
getTable()
Returns the columns table.
boolean
isPrimaryKeyPart()
Returns whether this column is part of the primary key.
boolean
isVirtual()
Returns whether this column is a true column or a virtual column.

Methods inherited from class org.apache.ws.jaxme.sqls.impl.AbstractColumn

equals, getCustomData, getLength, getName, getType, hasFixedLength, hashCode, isBinaryColumn, isNullable, isStringColumn, setCustomData, setLength, setLength, setNullable

Constructor Details

ColumnImpl

protected ColumnImpl(Table pTable,
                     Column.Name pName,
                     Column.Type pType)

Method Details

getQName

public String getQName()
Returns the columns fully qualified name, which is getTable().getQName() + "." + getName().
Specified by:
getQName in interface Column

getTable

public Table getTable()
Returns the columns table.
Specified by:
getTable in interface Column

isPrimaryKeyPart

public boolean isPrimaryKeyPart()
Returns whether this column is part of the primary key.
Specified by:
isPrimaryKeyPart in interface Column

isVirtual

public boolean isVirtual()
Returns whether this column is a true column or a virtual column.
Specified by:
isVirtual in interface Column