|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agimatec.sql.AliasDictionary
public class AliasDictionary
Internal - This type is part of a SQLWriter and used to create SQL aliases for SQL table names during the generation of an SQL statement.
| Field Summary | |
|---|---|
static String |
ALIAS_RESERVATION
if table is named @, the alias will not be printed |
| Constructor Summary | |
|---|---|
AliasDictionary()
AliasDictionary constructor comment. |
|
| Method Summary | |
|---|---|
void |
appendAliasListTo(Writer stream)
Generate the TABLENAME alias, ... list onto the given stream. |
void |
clear()
|
String |
findAlias(String tableName)
return the first alias for the given table |
String |
getHiddenAlias()
|
String |
removeAlias(String alias)
remove the alias for the table with the given alias. |
void |
setAlias(String tableName,
String alias)
set the alias for the given table |
void |
setAlias(String aTableName,
String aALias,
String aDBLink)
|
void |
setHiddenAlias(String ha)
|
int |
size()
|
String |
toString()
return a string representation (no special format garanteed) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ALIAS_RESERVATION
| Constructor Detail |
|---|
public AliasDictionary()
| Method Detail |
|---|
public void setHiddenAlias(String ha)
ha - public String getHiddenAlias()
public void clear()
public void appendAliasListTo(Writer stream)
throws IOException
stream -
IOExceptionpublic int size()
public String findAlias(String tableName)
public String removeAlias(String alias)
alias - - the alias (unique) to remove
public void setAlias(String tableName,
String alias)
public void setAlias(String aTableName,
String aALias,
String aDBLink)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||