All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaskell.sql.Offset Maven / Gradle / Ivy

Go to download

This is a utils library for java 8 project. It include parsec combinators and sql generators library.

There is a newer version: 2.9.2
Show newest version
package jaskell.sql;

import jaskell.script.Directive;
import jaskell.script.Parameter;

import java.util.List;

public class Offset extends Query {
    Directive _prefix;
    Directive _offset;
    Offset(int offset){
        this._offset = new Literal(offset);
    }

    Offset(Directive offset){
        this._offset = offset;
    }

    @Override
    public String script() {
        return String.format("%s OFFSET %s", _prefix.script(), _offset.script());
    }

    @Override
    public List> parameters() {
        List> re =  _prefix.parameters();
        re.addAll(_offset.parameters());
        return re;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy