Class SqlLimit


  • public class SqlLimit
    extends SqlNode
    LIMIT sql node.
    • Constructor Detail

      • SqlLimit

        public SqlLimit​(int limit)
        Instantiates a new SQL limit.
        Parameters:
        limit - the limit
      • SqlLimit

        public SqlLimit​(int limit,
                        int offset)
        Instantiates a new SQL limit.
        Parameters:
        limit - the limit
        offset - the offset
    • Method Detail

      • getLimit

        public int getLimit()
        Gets limit.
        Returns:
        the limit
      • setLimit

        @Deprecated(since="18.0.2",
                    forRemoval=true)
        public void setLimit​(int limit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        `SqlLimit` is immutable. Create a new instance instead.
        Parameters:
        limit - ignored
      • getOffset

        public int getOffset()
        Gets offset.
        Returns:
        the offset
      • setOffset

        @Deprecated(since="18.0.2",
                    forRemoval=true)
        public void setOffset​(int offset)
        Deprecated, for removal: This API element is subject to removal in a future version.
        `SqlLimit` is immutable. Create a new instance instead.
        Parameters:
        offset - ignored
      • hasOffset

        public boolean hasOffset()
        Has offset boolean.
        Returns:
        the boolean