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
-
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, wait
Methods 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:SelectItem
Return an OrderByItem referencing the SelectItem and specifying ascending ordering. The SelectItem must correspond to an orderable value.- Specified by:
asc
in interfaceSelectItem
- Returns:
- order-by item
-
desc
Description copied from interface:SelectItem
Return an OrderByItem referencing the SelectItem and specifying descending ordering. The SelectItem must correspond to an orderable value.- Specified by:
desc
in interfaceSelectItem
- Returns:
- order-by item
-
asProjection
Description copied from interface:Visitable
Gets the string representation in SELECT projection.- Specified by:
asProjection
in interfaceVisitable
-
asExpression
Description copied from interface:Visitable
Get a JPQL fragment as used in WHERE clause.- Specified by:
asExpression
in interfaceVisitable
-
getAliasHint
Description copied from interface:Visitable
Gets the hint to be used while creating alias.- Specified by:
getAliasHint
in interfaceVisitable
-
asJoinable
Description copied from interface:Visitable
Gets the string representation in FROM clause.- Specified by:
asJoinable
in interfaceVisitable
-