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

        public void setLimit​(int limit)
        Sets limit.
        Parameters:
        limit - the limit
      • getOffset

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

        public void setOffset​(int offset)
        Sets offset.
        Parameters:
        offset - the offset
      • hasOffset

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