All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Zql.ZAliasedName

java.lang.Object
   |
   +----Zql.ZAliasedName

public class ZAliasedName
extends Object
A name/alias association
Names can have two forms:


Variable Index

 o FORM_COLUMN
 o FORM_TABLE

Constructor Index

 o ZAliasedName()
 o ZAliasedName(String, int)
Create a new ZAliasedName given it's full name.

Method Index

 o getAlias()
 o getColumn()
 o getSchema()
 o getTable()
 o isWildcard()
 o setAlias(String)
Associate an alias with the current name.
 o toString()

Variables

 o FORM_TABLE
 public static int FORM_TABLE
 o FORM_COLUMN
 public static int FORM_COLUMN

Constructors

 o ZAliasedName
 public ZAliasedName()
 o ZAliasedName
 public ZAliasedName(String fullname,
                     int form)
Create a new ZAliasedName given it's full name.

Parameters:
fullname - The full name: [[schema.]table.]column
form - The name form (FORM_TABLE or FORM_COLUMN)

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o getSchema
 public String getSchema()
Returns:
If the name is of the form schema.table.column, returns the schema part
 o getTable
 public String getTable()
Returns:
If the name is of the form [schema.]table.column, returns the schema part
 o getColumn
 public String getColumn()
Returns:
The name is of the form [[schema.]table.]column: return the column part
 o isWildcard
 public boolean isWildcard()
Returns:
true if column is "*", false otherwise. Example: *, table.* are wildcards.
 o getAlias
 public String getAlias()
Returns:
the alias associated to the current name.
 o setAlias
 public void setAlias(String a)
Associate an alias with the current name.

Parameters:
a - the alias associated to the current name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index