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

jaskell.sql.Order 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 Order implements Directive {
  Directive _prefix;

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

  @Override
  public List> parameters() {
    return _prefix.parameters();
  }

  public By by(String names) {
    By re = new By(names);
    re._prefix = this;
    return re;
  }

  public By by(String... names) {
    By re = new By(names);
    re._prefix = this;
    return re;
  }

  public By by(Directive... names) {
    By re = new By(names);
    re._prefix = this;
    return re;
  }

  public By by(List names) {
    By re = new By(names);
    re._prefix = this;
    return re;
  }


  public static class By extends jaskell.sql.By {
    By(String names) {
      super(names);
    }

    By(String... names) {
      super(names);
    }

    By(Directive... names) {
      super(names);
    }

    By(List names) {
      super(names);
    }
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy