Class OrderingImpl


  • public class OrderingImpl
    extends java.lang.Object
    An element of an "order by" list. This includes whether this element should be sorted in ascending or descending order.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected QueryImpl query  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.jackrabbit.oak.api.PropertyValue convertValueToType​(org.apache.jackrabbit.oak.api.PropertyValue v, org.apache.jackrabbit.oak.api.PropertyValue targetType)  
      @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()  
      OrderingImpl createCopy()  
      protected java.lang.String getLocalPath​(java.lang.String path)
      Calculate the session local path (the path excluding the workspace name) if possible.
      DynamicOperandImpl getOperand()  
      boolean isDescending()  
      protected java.lang.String normalizePath​(java.lang.String path)
      Validate and normalize the path.
      protected java.lang.String normalizePropertyName​(java.lang.String propertyName)
      Normalize the property name (including namespace remapping).
      protected java.lang.String protect​(java.lang.Object expression)  
      protected java.lang.String quote​(java.lang.String pathOrName)  
      protected java.lang.String quoteJson​(java.lang.String string)  
      void setQuery​(QueryImpl query)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isDescending

        public boolean isDescending()
      • protect

        protected java.lang.String protect​(java.lang.Object expression)
      • quote

        protected java.lang.String quote​(java.lang.String pathOrName)
      • quoteJson

        protected java.lang.String quoteJson​(java.lang.String string)
      • setQuery

        public void setQuery​(QueryImpl query)
      • normalizePropertyName

        protected java.lang.String normalizePropertyName​(java.lang.String propertyName)
        Normalize the property name (including namespace remapping). Asterisks are kept.
        Parameters:
        propertyName - the property name to normalize
        Returns:
        the normalized (oak-) property name
      • normalizePath

        protected java.lang.String normalizePath​(java.lang.String path)
        Validate and normalize the path.
        Parameters:
        path - the path to validate
        Returns:
        the validated and normalized path
      • convertValueToType

        protected org.apache.jackrabbit.oak.api.PropertyValue convertValueToType​(org.apache.jackrabbit.oak.api.PropertyValue v,
                                                                                 org.apache.jackrabbit.oak.api.PropertyValue targetType)
      • getLocalPath

        protected java.lang.String getLocalPath​(java.lang.String path)
        Calculate the session local path (the path excluding the workspace name) if possible.
        Parameters:
        path - the absolute path
        Returns:
        the session local path, or null if not within this workspace
      • copyOf

        @NotNull
        public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
        Returns:
        a clone of self. Default implementation in AstElement returns same reference to this.