de.ec.sql.QueryOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder Show documentation
Show all versions of sqlbuilder Show documentation
Java builder to create SQL statements
package de.ec.sql;
import java.sql.PreparedStatement;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import org.apache.commons.lang3.StringUtils;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Data
@Accessors(fluent = true)
public class QueryOptions {
public static int FETCH_ALL = 0;
static QueryOptions DEFAULT_OPTIONS = new QueryOptions();
private int padLength = "SELECT".length();
private boolean splitNames = true;
private boolean pretty = true;
private boolean indent = true;
private boolean uppercase = true;
private boolean backticks = false;
private char quoteStartChar = '"';
private char quoteEndChar = '"';
private String dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
private PostProcessor sqlPostprocessor = null;
private PostProcessor stmtPostprocessor = null;
private Function