|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.query.UserAlias
This class is used to specify the path segments of a Criteria that should have associated table aliases. Previously, the default behaviour was that all path segments participated in the alias
Constructor Summary | |
UserAlias(java.lang.String name)
Constructor declaration |
|
UserAlias(java.lang.String name,
java.lang.String attributePath,
boolean allPathsAliased)
Constructor declaration |
|
UserAlias(java.lang.String name,
java.lang.String attributePath,
java.lang.String aliasPath)
Constructor declaration |
Method Summary | |
void |
add(java.lang.String path)
Adds a path to the aliased paths |
java.lang.String |
getAlias(java.lang.String path)
Returns the name of this alias if path has been added to the aliased portions of attributePath |
java.lang.String |
getName()
Returns the name of this alias |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserAlias(java.lang.String name)
name
- the name of the aliaspublic UserAlias(java.lang.String name, java.lang.String attributePath, java.lang.String aliasPath)
name
- the name of the aliasattributePath
- the full path of the SelectionCriteria attributealiasPath
- the portion of the attributePath which should be aliased.
This should be unambiguous. If ambiguous portions need aliasing (e.g.
B.C in allAs.B.C.B.C), use add() insteadpublic UserAlias(java.lang.String name, java.lang.String attributePath, boolean allPathsAliased)
name
- the name of the aliasattributePath
- the full path of the SelectionCriteria attributeallPathsAliased
- indicates that all path portions of attributePath
should be aliased (previously was the default)Method Detail |
public java.lang.String getName()
public java.lang.String getAlias(java.lang.String path)
path
- the path to test for inclusion in the aliaspublic void add(java.lang.String path)
path
- the path to add to the aliased paths
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |