|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.sql.TableAliasGenerator
public class TableAliasGenerator
Responsible for the generation of unique table aliases. This is needed in SQL queries in order to built joins that use the same table more than once.
| Constructor Summary | |
|---|---|
TableAliasGenerator()
Creates a new TableAliasGenerator instance that uses a default prefix for
generated table aliases. |
|
TableAliasGenerator(String prefix)
Creates a new TableAliasGenerator instance that uses the given prefix for
generated table aliases. |
|
| Method Summary | |
|---|---|
String |
generateUniqueAlias()
Returns a unique alias. |
String[] |
generateUniqueAliases(int n)
Returns the specified number of unique aliases. |
void |
reset()
Resets the alias sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableAliasGenerator()
TableAliasGenerator instance that uses a default prefix for
generated table aliases.
public TableAliasGenerator(String prefix)
TableAliasGenerator instance that uses the given prefix for
generated table aliases.
prefix - prefix for generated table aliases| Method Detail |
|---|
public String generateUniqueAlias()
public String[] generateUniqueAliases(int n)
n -
public void reset()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net