Class NewInstance

java.lang.Object
org.apache.openjpa.persistence.query.NewInstance
All Implemented Interfaces:
Serializable, OrderByItem, SelectItem, Visitable

public class NewInstance extends Object implements SelectItem, Visitable
Denotes NEW fully.qualified.class.name(arg1, arg2,...)
Author:
Pinaki Poddar
See Also:
  • Field Details

  • Method Details

    • asc

      public OrderByItem 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 interface SelectItem
      Returns:
      order-by item
    • desc

      public OrderByItem 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 interface SelectItem
      Returns:
      order-by item
    • asProjection

      public String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
      Description copied from interface: Visitable
      Gets the string representation in SELECT projection.
      Specified by:
      asProjection in interface Visitable
    • asExpression

      public String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
      Description copied from interface: Visitable
      Get a JPQL fragment as used in WHERE clause.
      Specified by:
      asExpression in interface Visitable
    • getAliasHint

      public String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
      Description copied from interface: Visitable
      Gets the hint to be used while creating alias.
      Specified by:
      getAliasHint in interface Visitable
    • asJoinable

      public String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
      Description copied from interface: Visitable
      Gets the string representation in FROM clause.
      Specified by:
      asJoinable in interface Visitable