Class NewInstance
- java.lang.Object
-
- org.apache.openjpa.persistence.query.NewInstance
-
- All Implemented Interfaces:
java.io.Serializable,OrderByItem,SelectItem,Visitable
public class NewInstance extends java.lang.Object implements SelectItem, Visitable
Denotes NEW fully.qualified.class.name(arg1, arg2,...)- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLOSE_BRACEstatic java.lang.StringCOMMAstatic java.lang.StringEMPTYstatic java.lang.StringOPEN_BRACEstatic java.lang.StringSPACE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderByItemasc()Return an OrderByItem referencing the SelectItem and specifying ascending ordering.java.lang.StringasExpression(org.apache.openjpa.persistence.query.AliasContext ctx)Get a JPQL fragment as used in WHERE clause.java.lang.StringasJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)Gets the string representation in FROM clause.java.lang.StringasProjection(org.apache.openjpa.persistence.query.AliasContext ctx)Gets the string representation in SELECT projection.OrderByItemdesc()Return an OrderByItem referencing the SelectItem and specifying descending ordering.java.lang.StringgetAliasHint(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 Detail
-
SPACE
public static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
OPEN_BRACE
public static final java.lang.String OPEN_BRACE
- See Also:
- Constant Field Values
-
CLOSE_BRACE
public static final java.lang.String CLOSE_BRACE
- See Also:
- Constant Field Values
-
COMMA
public static final java.lang.String COMMA
- See Also:
- Constant Field Values
-
EMPTY
public static final java.lang.String EMPTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
asc
public OrderByItem 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
public OrderByItem 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
public java.lang.String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface:VisitableGets the string representation in SELECT projection.- Specified by:
asProjectionin interfaceVisitable
-
asExpression
public java.lang.String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface:VisitableGet a JPQL fragment as used in WHERE clause.- Specified by:
asExpressionin interfaceVisitable
-
getAliasHint
public java.lang.String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface:VisitableGets the hint to be used while creating alias.- Specified by:
getAliasHintin interfaceVisitable
-
asJoinable
public java.lang.String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Description copied from interface:VisitableGets the string representation in FROM clause.- Specified by:
asJoinablein interfaceVisitable
-
-