org.apache.openjpa.persistence.query
Class AliasContext
java.lang.Object
org.apache.openjpa.persistence.query.AliasContext
class AliasContext
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AliasContext
public AliasContext(MetaDataRepository repos)
getAlias
public String getAlias(ExpressionImpl path)
- Sets alias for the given Expression or gets the alias if the given
path has already been assigned an alias.
The given expression must provide a hint on what should be the
alias name. If the alias name is assigned by this context, then a
different alias is generated.
- Parameters:
path
-
- Returns:
- the alias name
setAlias
public String setAlias(ExpressionImpl path)
hasAlias
public boolean hasAlias(Expression path)
- Affirms if the given Expression has been assigned an alias by this
context.
push
public AliasContext push(Object e)
getEntityName
public String getEntityName(Class cls)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.