| java.lang.Object org.apache.ojb.broker.query.UserAlias
UserAlias | public class UserAlias implements Serializable(Code) | | 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
author: Phil Warrick |
Constructor Summary | |
public | UserAlias(String name) | public | UserAlias(String name, String attributePath, String aliasPath) Constructor declaration
Parameters: name - the name of the alias Parameters: attributePath - the full path of the SelectionCriteria attribute Parameters: aliasPath - the portion of the attributePath which should be aliased.This should be unambiguous. | public | UserAlias(String name, String attributePath, boolean allPathsAliased) |
UserAlias | public UserAlias(String name)(Code) | | Constructor declaration
Parameters: name - the name of the alias |
UserAlias | public UserAlias(String name, String attributePath, String aliasPath)(Code) | | Constructor declaration
Parameters: name - the name of the alias Parameters: attributePath - the full path of the SelectionCriteria attribute Parameters: aliasPath - 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() instead |
UserAlias | public UserAlias(String name, String attributePath, boolean allPathsAliased)(Code) | | Constructor declaration
Parameters: name - the name of the alias Parameters: attributePath - the full path of the SelectionCriteria attribute Parameters: allPathsAliased - indicates that all path portions of attributePathshould be aliased (previously was the default) |
add | public void add(String path)(Code) | | Adds a path to the aliased paths
Parameters: path - the path to add to the aliased paths |
getAlias | public String getAlias(String path)(Code) | | Returns the name of this alias if path has been added
to the aliased portions of attributePath
Parameters: path - the path to test for inclusion in the alias |
getName | public String getName()(Code) | | Returns the name of this alias
|
|
|