org.apache.openjpa.persistence.query
Interface Visitable

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbsExpression, AbstractDomainObject, AndPredicate, ArrayExpression, AverageExpression, BetweenExpression, BinaryOperatorExpression, CaseExpressionImpl, ConcatExpression, CountExpression, CurrentTimeExpression, DistinctExpression, DividedByExpression, ElseExpression, EntryExpression, EqualExpression, ExistsExpression, FetchPath, GreaterEqualExpression, GreaterThanExpression, IndexExpression, InExpression, IsEmptyExpression, IsNullExpression, JoinPath, KeyExpression, LengthExpression, LessEqualExpression, LessThanExpression, LikeExpression, LiteralExpression, LocateExpression, LogicalPredicate, LowerExpression, MaxExpression, MemberOfExpression, MinExpression, MinusExpression, NewInstance, NotEqualExpression, OperatorPath, OrderableItem, OrPredicate, ParameterExpression, PlusExpression, QueryDefinitionImpl, RangeExpression, RootPath, SizeExpression, SquareRootExpression, SubStringExpression, SumExpression, TimesExpression, TrimExpression, TypeExpression, UnaryMinusExpression, UpperExpression, ValueExpression, VarArgsExpression

public interface Visitable
extends Serializable

An element of query that is convertible to a JPQL String given a aliasing scheme. QueryDefinition visits each of its element and translates them.

Author:
Pinaki Poddar

Method Summary
 String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
          Get a JPQL fragment as used in WHERE clause.
 String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the string representation in FROM clause.
 String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the string representation in SELECT projection.
 String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
          Gets the hint to be used while creating alias.
 

Method Detail

asExpression

String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.


asProjection

String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in SELECT projection.


asJoinable

String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in FROM clause.


getAliasHint

String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the hint to be used while creating alias.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.