|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.service.SQLSelectCommand
Instances of this class is used to get as few uniq aliases as possible in a SQL SELECT statement's SELECT-, FROM-, JOIN- and WHERE- expressions/clauses.
Constructor Summary | |
SQLSelectCommand()
|
Method Summary | |
protected void |
append(char c)
|
protected void |
append(java.lang.String str)
|
protected void |
collectAllEntityRelationPathsAndMakeUniqAliases(DataQuery.ExternalQualifier[] xTernalQualifiers)
This method collects paths and alias lists in an external qualifer and make uniq alias. |
protected void |
collectAllEntityRelationPathsAndMakeUniqAliases(ICompositeEntityDescriptor.ICompositeFieldGroup rootFieldGroup)
This method collects all entity relation path in a field group tree. |
protected java.lang.String[] |
getAliasArray(IEntityRelationPath entityRelationPath)
Get uniq aliases for a path. |
protected java.lang.String |
getRootAlias()
|
protected boolean |
isAliasDeclared(java.lang.String alias)
|
protected void |
markAliasAsDeclared(java.lang.String declaredAlias)
|
protected void |
setRootAlias(java.lang.String rootAlias)
|
protected void |
shortenCommandWith(int shortenThisMuch)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SQLSelectCommand()
Method Detail |
protected java.lang.String getRootAlias()
public java.lang.String toString()
protected boolean isAliasDeclared(java.lang.String alias)
protected java.lang.String[] getAliasArray(IEntityRelationPath entityRelationPath)
entityRelationPath
- a path to get uniq aliases for.
protected void append(java.lang.String str)
protected void append(char c)
protected void shortenCommandWith(int shortenThisMuch)
protected void setRootAlias(java.lang.String rootAlias)
protected void markAliasAsDeclared(java.lang.String declaredAlias)
protected void collectAllEntityRelationPathsAndMakeUniqAliases(ICompositeEntityDescriptor.ICompositeFieldGroup rootFieldGroup)
rootFieldGroup
- the root in the field group tree.protected void collectAllEntityRelationPathsAndMakeUniqAliases(DataQuery.ExternalQualifier[] xTernalQualifiers)
xTernalQualifiers
- the external qualifer to collect paths and alias
from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |