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

play.db.helper.JpqlSelect Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package play.db.helper;

public class JpqlSelect extends SqlSelect {

    public JpqlSelect() {
        super();
    }

    public JpqlSelect(JpqlSelect src) {
        super(src);
    }

    @Override
    public String toString() {
        if (!join.isEmpty()) throw new IllegalArgumentException();
        if (!limit.isEmpty()) throw new IllegalArgumentException();

        if (select.isEmpty() && from.isEmpty()) where.prefix("");
        return new Concat(""," ").defaultValue(null)
                .append(select)
                .append(from)
                .append(where)
                .append(groupBy)
                .append(orderBy)
                .toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy