Class NewInstance

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLOSE_BRACE  
      static java.lang.String COMMA  
      static java.lang.String EMPTY  
      static java.lang.String OPEN_BRACE  
      static java.lang.String SPACE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OrderByItem asc()
      Return an OrderByItem referencing the SelectItem and specifying ascending ordering.
      java.lang.String asExpression​(org.apache.openjpa.persistence.query.AliasContext ctx)
      Get a JPQL fragment as used in WHERE clause.
      java.lang.String asJoinable​(org.apache.openjpa.persistence.query.AliasContext ctx)
      Gets the string representation in FROM clause.
      java.lang.String asProjection​(org.apache.openjpa.persistence.query.AliasContext ctx)
      Gets the string representation in SELECT projection.
      OrderByItem desc()
      Return an OrderByItem referencing the SelectItem and specifying descending ordering.
      java.lang.String 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
    • Method Detail

      • 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 java.lang.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 java.lang.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 java.lang.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 java.lang.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