public class Sql extends Object implements SqlInsert.Apply, SqlUpdate.Apply, SqlSelect.Apply
| Modifier and Type | Class and Description |
|---|---|
static class |
Sql.ColumnType |
| Modifier and Type | Method and Description |
|---|---|
Sql |
append(boolean value) |
Sql |
append(double value) |
Sql |
append(float value) |
Sql |
append(int value) |
Sql |
append(long value) |
Sql |
append(String sql) |
Sql |
appendQuestionMarks(int howMany) |
void |
apply(SqlInsert insert) |
void |
apply(SqlSelect select) |
void |
apply(SqlUpdate update) |
Sql |
argBigDecimal(BigDecimal arg) |
Sql |
argBigDecimal(String argName,
BigDecimal arg) |
Sql |
argBlobBytes(byte[] arg) |
Sql |
argBlobBytes(String argName,
byte[] arg) |
Sql |
argBlobInputStream(InputStream arg) |
Sql |
argBlobInputStream(String argName,
InputStream arg) |
Sql |
argBoolean(Boolean arg) |
Sql |
argBoolean(String argName,
Boolean arg) |
Sql |
argClobReader(Reader arg) |
Sql |
argClobReader(String argName,
Reader arg) |
Sql |
argClobString(String arg) |
Sql |
argClobString(String argName,
String arg) |
int |
argCount() |
Sql |
argDate(Date arg) |
Sql |
argDate(String argName,
Date arg) |
Sql |
argDateNowPerApp() |
Sql |
argDateNowPerApp(String argName) |
Sql |
argDateNowPerDb() |
Sql |
argDateNowPerDb(String argName) |
Sql |
argDouble(Double arg) |
Sql |
argDouble(String argName,
Double arg) |
Sql |
argFloat(Float arg) |
Sql |
argFloat(String argName,
Float arg) |
Sql |
argInteger(Integer arg) |
Sql |
argInteger(String argName,
Integer arg) |
Sql |
argLong(Long arg) |
Sql |
argLong(String argName,
Long arg) |
Sql |
argString(String arg) |
Sql |
argString(String argName,
String arg) |
Sql |
batch() |
Sql |
deleteCharAt(int index) |
int |
indexOf(String str) |
int |
indexOf(String str,
int fromIndex) |
Sql |
insert(int offset,
boolean value) |
Sql |
insert(int offset,
double value) |
Sql |
insert(int offset,
float value) |
Sql |
insert(int offset,
int value) |
Sql |
insert(int offset,
long value) |
Sql |
insert(int offset,
String str) |
static Sql |
insert(String table,
List<SqlArgs> args) |
static Sql |
insert(String table,
SqlArgs args) |
int |
lastIndexOf(String str) |
int |
lastIndexOf(String str,
int fromIndex) |
Sql |
listEnd(String sql) |
Sql |
listSeparator(String sql)
Appends the passed bit of sql only if a previous item has already been appended,
and notes that the list is not empty.
|
Sql |
listStart(String sql)
Appends the bit of sql and notes that a list, or a sublist, has started.
|
Sql |
replace(int start,
int end,
String str) |
Sql |
setSqlArgs(SqlArgs args) |
String |
sql() |
String |
toString()
Same as sql(), provided for drop-in compatibility with StringBuilder.
|
public Sql()
public Sql(String sql)
public Sql batch()
public int argCount()
public Sql appendQuestionMarks(int howMany)
public Sql append(boolean value)
public Sql append(int value)
public Sql append(long value)
public Sql append(float value)
public Sql append(double value)
public Sql deleteCharAt(int index)
public Sql insert(int offset, boolean value)
public Sql insert(int offset, int value)
public Sql insert(int offset, long value)
public Sql insert(int offset, double value)
public Sql insert(int offset, float value)
public int indexOf(String str)
public int indexOf(String str, int fromIndex)
public int lastIndexOf(String str)
public int lastIndexOf(String str, int fromIndex)
public Sql listStart(String sql)
public Sql listSeparator(String sql)
public String sql()
public String toString()
@Nonnull public Sql argBigDecimal(@Nullable BigDecimal arg)
@Nonnull public Sql argBlobInputStream(@Nullable InputStream arg)
@Nonnull public Sql argBlobInputStream(@Nonnull String argName, @Nullable InputStream arg)
public void apply(SqlSelect select)
apply in interface SqlSelect.Applypublic void apply(SqlInsert insert)
apply in interface SqlInsert.Applypublic void apply(SqlUpdate update)
apply in interface SqlUpdate.ApplyCopyright © 2020. All rights reserved.