wt.introspection
Class AliasDescriptor

java.lang.Object
  extended bywt.introspection.ColumnDescriptor
      extended bywt.introspection.AliasDescriptor
All Implemented Interfaces:
Cloneable, Externalizable, Serializable

public class AliasDescriptor
extends ColumnDescriptor

AliasDescriptor supplies meta-data information for a database view, over a particular table column.

Supported API: false

Extendable: false

See Also:
ColumnDescriptor, DatabaseViewInfo, WTIntrospector, Serialized Form

Field Summary
private  String aliasName
           
private static int DEBUG_LEVEL
           
private  String tableAlias
           
private  ColumnDescriptor wrappedColumn
           
 
Fields inherited from class wt.introspection.ColumnDescriptor
DEBUG, externalizationVersionUID, MAX_BYTES_PER_CHAR, MAX_SQL_STRING_SIZE, name, REF_DELIMETER, serialVersionUID
 
Constructor Summary
protected AliasDescriptor()
           
  AliasDescriptor(ColumnDescriptor col_descr, String table_alias)
           
  AliasDescriptor(ColumnDescriptor col_descr, String the_name, String the_alias_name, String the_table_alias)
           
 
Method Summary
 String getBaseColumnName()
          Answer my source table's column name
 String getColumnName()
          Answer my database column name, or alias of the column name, if different
 String getJavaType()
          Answer my Java type
 int getLength()
          Length of the attribute
 PropertyDescriptor getPropertyDescriptor()
          Answer my PropertyDescriptor.
 int getSQLType()
          Answer my SQL type
 String getTableAlias()
          Answer the alias name of the base table, which is the source of the base column
 String getTableSize()
          Get the table size.
 String getTableSpaceName()
          Get the table space name.
(package private)  ColumnDescriptor getWrappedColumnDescriptor()
           
 boolean isIndexed()
          Answer whether attribute is indexed
 boolean isRequired()
          Answer true | false - attribute is required
 boolean isUnique()
          Answer whether attribute must be unique, among all instances
 boolean isUpdatable()
          Answer whether column may be updatable
(package private)  void setPropertyDescriptor(PropertyDescriptor pd)
          Set my PropertyDescriptor Only to be used when ClassInfo initializes it.
 
Methods inherited from class wt.introspection.ColumnDescriptor
clone, getName, readExternal, setColumnName, setName, setOwnerClassInfo, toString, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG_LEVEL

private static final int DEBUG_LEVEL
See Also:
Constant Field Values

aliasName

private String aliasName

tableAlias

private String tableAlias

wrappedColumn

private ColumnDescriptor wrappedColumn
Constructor Detail

AliasDescriptor

protected AliasDescriptor()

AliasDescriptor

public AliasDescriptor(ColumnDescriptor col_descr,
                       String table_alias)

AliasDescriptor

public AliasDescriptor(ColumnDescriptor col_descr,
                       String the_name,
                       String the_alias_name,
                       String the_table_alias)
Method Detail

getBaseColumnName

public String getBaseColumnName()
Answer my source table's column name

Overrides:
getBaseColumnName in class ColumnDescriptor
Returns:
source table's column name

getColumnName

public String getColumnName()
Answer my database column name, or alias of the column name, if different

Overrides:
getColumnName in class ColumnDescriptor
Returns:
columnName

getJavaType

public String getJavaType()
Answer my Java type

Overrides:
getJavaType in class ColumnDescriptor
Returns:
Java type

getLength

public int getLength()
Length of the attribute

Overrides:
getLength in class ColumnDescriptor
Returns:
length

getSQLType

public int getSQLType()
Answer my SQL type

Overrides:
getSQLType in class ColumnDescriptor
Returns:
SQL type

getTableAlias

public String getTableAlias()
Answer the alias name of the base table, which is the source of the base column

Returns:
tableAlias

getTableSize

public String getTableSize()
Get the table size. Only applies to certain column types, such as BLOB.

Overrides:
getTableSize in class ColumnDescriptor
Returns:
Table Size is a categorization, with valid String values of [ TINY | SMALL | MEDIUM | LARGE | HUGE ]

getTableSpaceName

public String getTableSpaceName()
Get the table space name. Only applies to certain column types, such as BLOB.

Overrides:
getTableSpaceName in class ColumnDescriptor
Returns:
Table Space Name

getWrappedColumnDescriptor

ColumnDescriptor getWrappedColumnDescriptor()

isIndexed

public boolean isIndexed()
Answer whether attribute is indexed

Overrides:
isIndexed in class ColumnDescriptor
Returns:
indexed

isRequired

public boolean isRequired()
Answer true | false - attribute is required

Overrides:
isRequired in class ColumnDescriptor
Returns:
required

isUnique

public boolean isUnique()
Answer whether attribute must be unique, among all instances

Overrides:
isUnique in class ColumnDescriptor
Returns:
unique

isUpdatable

public boolean isUpdatable()
Answer whether column may be updatable

Overrides:
isUpdatable in class ColumnDescriptor
Returns:
updatable

getPropertyDescriptor

public PropertyDescriptor getPropertyDescriptor()
Answer my PropertyDescriptor.

Overrides:
getPropertyDescriptor in class ColumnDescriptor
Returns:
PropertyDescriptor

setPropertyDescriptor

void setPropertyDescriptor(PropertyDescriptor pd)
Set my PropertyDescriptor Only to be used when ClassInfo initializes it.

Overrides:
setPropertyDescriptor in class ColumnDescriptor