public class UserAlias
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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)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(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30