|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String prefix)
Creates a new TableAliasGenerator instance that uses the given prefix for
generated table aliases. |
Method Summary | |
---|---|
java.lang.String |
generateUniqueAlias()
Returns a unique alias. |
java.lang.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(java.lang.String prefix)
TableAliasGenerator
instance that uses the given prefix for
generated table aliases.
prefix
- prefix for generated table aliasesMethod Detail |
---|
public java.lang.String generateUniqueAlias()
public java.lang.String[] generateUniqueAliases(int n)
n
-
public void reset()
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org