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:
- FORM_TABLE for table names ([schema.]table)
- FORM_COLUMN for column names ([[schema.]table.]column)
-
FORM_COLUMN
-
-
FORM_TABLE
-
-
ZAliasedName()
-
-
ZAliasedName(String, int)
- Create a new ZAliasedName given it's full name.
-
getAlias()
-
-
getColumn()
-
-
getSchema()
-
-
getTable()
-
-
isWildcard()
-
-
setAlias(String)
- Associate an alias with the current name.
-
toString()
-
FORM_TABLE
public static int FORM_TABLE
FORM_COLUMN
public static int FORM_COLUMN
ZAliasedName
public ZAliasedName()
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)
toString
public String toString()
- Overrides:
- toString in class Object
getSchema
public String getSchema()
- Returns:
- If the name is of the form schema.table.column,
returns the schema part
getTable
public String getTable()
- Returns:
- If the name is of the form [schema.]table.column,
returns the schema part
getColumn
public String getColumn()
- Returns:
- The name is of the form [[schema.]table.]column:
return the column part
isWildcard
public boolean isWildcard()
- Returns:
- true if column is "*", false otherwise.
Example: *, table.* are wildcards.
getAlias
public String getAlias()
- Returns:
- the alias associated to the current name.
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