Class Limit

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Limit​(int limit)
      Create a new Limit statement with the amount of rows to be fetched
      protected Limit​(QueryPartLinked<?> parent, int limit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Offset offset​(int offset)
      Creates a new Offset instance with the offset to skip when selecting data
      java.lang.String string​(QueryOptions options)
      Transforms this statement into an SQL string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryPart

        string
    • Constructor Detail

      • Limit

        public Limit​(int limit)
        Create a new Limit statement with the amount of rows to be fetched
        Parameters:
        limit - The amount of rows to be fetched
    • Method Detail

      • offset

        public Offset offset​(int offset)
        Creates a new Offset instance with the offset to skip when selecting data
        Parameters:
        offset - The offset to skip from the start
        Returns:
        The new Offset instance
      • string

        public java.lang.String string​(QueryOptions options)
        Description copied from interface: QueryPart
        Transforms this statement into an SQL string
        Specified by:
        string in interface QueryPart
        Parameters:
        options - The QueryOptions to apply for transformation
        Returns:
        The created SQL string