Class NewInstance
java.lang.Object
org.apache.openjpa.persistence.query.NewInstance
- All Implemented Interfaces:
Serializable,OrderByItem,SelectItem,Visitable
Denotes NEW fully.qualified.class.name(arg1, arg2,...)
- Author:
- Pinaki Poddar
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasc()Return an OrderByItem referencing the SelectItem and specifying ascending ordering.asExpression(org.apache.openjpa.persistence.query.AliasContext ctx) Get a JPQL fragment as used in WHERE clause.asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in FROM clause.asProjection(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the string representation in SELECT projection.desc()Return an OrderByItem referencing the SelectItem and specifying descending ordering.getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx) Gets the hint to be used while creating alias.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.persistence.query.Visitable
asExpression, asJoinable, getAliasHint
-
Field Details
-
SPACE
- See Also:
-
OPEN_BRACE
- See Also:
-
CLOSE_BRACE
- See Also:
-
COMMA
- See Also:
-
EMPTY
- See Also:
-
-
Method Details
-
asc
Description copied from interface:SelectItemReturn an OrderByItem referencing the SelectItem and specifying ascending ordering. The SelectItem must correspond to an orderable value.- Specified by:
ascin interfaceSelectItem- Returns:
- order-by item
-
desc
Description copied from interface:SelectItemReturn an OrderByItem referencing the SelectItem and specifying descending ordering. The SelectItem must correspond to an orderable value.- Specified by:
descin interfaceSelectItem- Returns:
- order-by item
-
asProjection
Description copied from interface:VisitableGets the string representation in SELECT projection.- Specified by:
asProjectionin interfaceVisitable
-
asExpression
Description copied from interface:VisitableGet a JPQL fragment as used in WHERE clause.- Specified by:
asExpressionin interfaceVisitable
-
getAliasHint
Description copied from interface:VisitableGets the hint to be used while creating alias.- Specified by:
getAliasHintin interfaceVisitable
-
asJoinable
Description copied from interface:VisitableGets the string representation in FROM clause.- Specified by:
asJoinablein interfaceVisitable
-