public class SQL extends Object
| Constructor and Description |
|---|
SQL() |
| Modifier and Type | Method and Description |
|---|---|
static <T> BooleanExpr<T,T> |
bool(T value) |
static <T,E> NumberColumn<T,E> |
buildAiColumn(String name,
SQLType<T,E> type,
boolean allowNull) |
static <T,E> BooleanColumn<T,E> |
buildBooleanColumn(String name,
SQLType<T,E> type,
boolean allowNull,
T defValue) |
static <T,E> Column<T,E> |
buildColumn(String name,
SQLType<T,E> type,
boolean allowNull,
T defValue) |
static <T,E> DateColumn<T,E> |
buildDateColumn(String name,
SQLType<T,E> type,
boolean allowNull,
T defValue) |
static BuildForeignKeyStep |
buildForeignKey(Column<?,?>... columns) |
static BuildForeignKeyStep |
buildForeignKey(String name,
Column<?,?>... columns) |
static BuildForeignKeyStep |
buildForeignKey(String name,
Table table,
Column<?,?>... columns) |
static BuildForeignKeyStep |
buildForeignKey(Table table,
Column<?,?>... columns) |
static Index |
buildIndex(Column<?,?>... columns) |
static Index |
buildIndex(String name,
Column<?,?>... columns) |
static Index |
buildIndex(String name,
Table table,
Column<?,?>... columns) |
static Index |
buildIndex(Table table,
Column<?,?>... columns) |
static <T,E> NumberColumn<T,E> |
buildNumberColumn(String name,
SQLType<T,E> type,
boolean allowNull,
T defValue) |
static BuildSchemaStep |
buildSchema(String name) |
static <T,E> StringColumn<T,E> |
buildStringColumn(String name,
SQLType<T,E> type,
boolean allowNull,
T defValue) |
static BuildTableStep |
buildTable(String name) |
static <T,E> SQLType<T,E> |
buildType(Class<T> javaType,
Class<E> javaReadType,
JDBCType jdbcType,
int length,
int precision,
SQLValueParser<T,E> parser,
SQLValueWriter<E,T> writer) |
static <T,E> SQLType<T,E> |
buildType(Class<T> javaType,
Class<E> javaReadType,
JDBCType jdbcType,
int length,
SQLValueParser<T,E> parser,
SQLValueWriter<E,T> writer) |
static <T,E> SQLType<T,E> |
buildType(Class<T> javaType,
Class<E> javaReadType,
JDBCType jdbcType,
SQLValueParser<T,E> parser,
SQLValueWriter<E,T> writer) |
static <T> SQLType<T,T> |
buildType(Class<T> javaType,
JDBCType jdbcType) |
static <T> SQLType<T,T> |
buildType(Class<T> javaType,
JDBCType jdbcType,
int length) |
static <T> SQLType<T,T> |
buildType(Class<T> javaType,
JDBCType jdbcType,
int length,
int precision) |
static Index |
buildUnique(Column<?,?>... columns) |
static Index |
buildUnique(String name,
Column<?,?>... columns) |
static Index |
buildUnique(String name,
Table table,
Column<?,?>... columns) |
static Index |
buildUnique(Table table,
Column<?,?>... columns) |
static ArithmeticExpr<Integer,Integer> |
count() |
static <T> Expression<T,T> |
custom(T value) |
static DeleteStep |
delete(Table... tables) |
static InsertIntoStep |
insertInto(Table table) |
static Limit |
limit(int offset,
int count) |
static <T,E> ArithmeticExpr<T,E> |
number(T value) |
static <T,E> Expression<T,E> |
param(SQLType<T,E> type) |
static SelectStep |
select(Expression<?,?>... columns) |
static <T> StringExpr<T,T> |
str(T value) |
static UpdateStep |
update(Table table) |
static BooleanExpr<Boolean,Boolean> |
val(boolean value) |
static BooleanExpr<Boolean,Boolean> |
val(Boolean value) |
static ArithmeticExpr<Byte,Byte> |
val(byte value) |
static ArithmeticExpr<Byte,Byte> |
val(Byte value) |
static Expression<Character,Character> |
val(char value) |
static Expression<Character,Character> |
val(Character value) |
static ArithmeticExpr<Double,Double> |
val(double value) |
static ArithmeticExpr<Double,Double> |
val(Double value) |
static ArithmeticExpr<Float,Float> |
val(float value) |
static ArithmeticExpr<Float,Float> |
val(Float value) |
static ArithmeticExpr<Integer,Integer> |
val(int value) |
static ArithmeticExpr<Integer,Integer> |
val(Integer value) |
static ArithmeticExpr<Long,Long> |
val(long value) |
static ArithmeticExpr<Long,Long> |
val(Long value) |
static ArithmeticExpr<Number,Number> |
val(Number value) |
static ArithmeticExpr<Short,Short> |
val(short value) |
static ArithmeticExpr<Short,Short> |
val(Short value) |
static StringExpr<String,String> |
val(String value) |
public static final <T> SQLType<T,T> buildType(Class<T> javaType, JDBCType jdbcType, int length, int precision)
T - javaType - jdbcType - length - precision - public static final <T> SQLType<T,T> buildType(Class<T> javaType, JDBCType jdbcType, int length)
T - javaType - jdbcType - length - public static final <T> SQLType<T,T> buildType(Class<T> javaType, JDBCType jdbcType)
T - javaType - jdbcType - public static final <T,E> SQLType<T,E> buildType(Class<T> javaType, Class<E> javaReadType, JDBCType jdbcType, int length, int precision, SQLValueParser<T,E> parser, SQLValueWriter<E,T> writer)
T - E - javaType - javaReadType - jdbcType - length - precision - parser - writer - public static final <T,E> SQLType<T,E> buildType(Class<T> javaType, Class<E> javaReadType, JDBCType jdbcType, int length, SQLValueParser<T,E> parser, SQLValueWriter<E,T> writer)
T - E - javaType - javaReadType - jdbcType - length - parser - writer - public static final <T,E> SQLType<T,E> buildType(Class<T> javaType, Class<E> javaReadType, JDBCType jdbcType, SQLValueParser<T,E> parser, SQLValueWriter<E,T> writer)
T - E - javaType - javaReadType - jdbcType - parser - writer - public static final BuildSchemaStep buildSchema(String name)
name - public static final BuildTableStep buildTable(String name)
name - public static final <T,E> Column<T,E> buildColumn(String name, SQLType<T,E> type, boolean allowNull, T defValue)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - defValue - public static final <T,E> NumberColumn<T,E> buildAiColumn(String name, SQLType<T,E> type, boolean allowNull)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - public static final <T,E> NumberColumn<T,E> buildNumberColumn(String name, SQLType<T,E> type, boolean allowNull, T defValue)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - defValue - public static final <T,E> DateColumn<T,E> buildDateColumn(String name, SQLType<T,E> type, boolean allowNull, T defValue)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - defValue - public static final <T,E> StringColumn<T,E> buildStringColumn(String name, SQLType<T,E> type, boolean allowNull, T defValue)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - defValue - public static final <T,E> BooleanColumn<T,E> buildBooleanColumn(String name, SQLType<T,E> type, boolean allowNull, T defValue)
T - The final java type of the expression.E - The result set read java type of the expression.name - type - allowNull - defValue - public static final Index buildIndex(String name, Table table, Column<?,?>... columns)
name - table - columns - public static final Index buildIndex(Table table, Column<?,?>... columns)
table - columns - public static final Index buildUnique(String name, Table table, Column<?,?>... columns)
name - table - columns - public static final Index buildUnique(Table table, Column<?,?>... columns)
table - columns - public static final BuildForeignKeyStep buildForeignKey(String name, Table table, Column<?,?>... columns)
name - table - columns - public static final BuildForeignKeyStep buildForeignKey(Table table, Column<?,?>... columns)
table - columns - public static final Index buildIndex(String name, Column<?,?>... columns)
name - columns - public static final Index buildIndex(Column<?,?>... columns)
columns - public static final Index buildUnique(String name, Column<?,?>... columns)
name - columns - public static final Index buildUnique(Column<?,?>... columns)
columns - public static final BuildForeignKeyStep buildForeignKey(String name, Column<?,?>... columns)
name - columns - public static final BuildForeignKeyStep buildForeignKey(Column<?,?>... columns)
columns - public static final SelectStep select(Expression<?,?>... columns)
columns - public static final InsertIntoStep insertInto(Table table)
table - public static final UpdateStep update(Table table)
table - public static final DeleteStep delete(Table... tables)
tables - public static final ArithmeticExpr<Number,Number> val(Number value)
value - public static final ArithmeticExpr<Byte,Byte> val(byte value)
value - public static final ArithmeticExpr<Byte,Byte> val(Byte value)
value - public static final ArithmeticExpr<Short,Short> val(short value)
value - public static final ArithmeticExpr<Short,Short> val(Short value)
value - public static final ArithmeticExpr<Integer,Integer> val(int value)
value - public static final ArithmeticExpr<Integer,Integer> val(Integer value)
value - public static final ArithmeticExpr<Long,Long> val(long value)
value - public static final ArithmeticExpr<Long,Long> val(Long value)
value - public static final ArithmeticExpr<Float,Float> val(float value)
value - public static final ArithmeticExpr<Float,Float> val(Float value)
value - public static final ArithmeticExpr<Double,Double> val(double value)
value - public static final ArithmeticExpr<Double,Double> val(Double value)
value - public static final StringExpr<String,String> val(String value)
value - public static final BooleanExpr<Boolean,Boolean> val(Boolean value)
value - public static final BooleanExpr<Boolean,Boolean> val(boolean value)
value - public static final Expression<Character,Character> val(char value)
value - public static final Expression<Character,Character> val(Character value)
value - public static final <T,E> ArithmeticExpr<T,E> number(T value)
T - E - value - public static final <T> BooleanExpr<T,T> bool(T value)
T - value - public static final <T> StringExpr<T,T> str(T value)
T - value - public static final <T> Expression<T,T> custom(T value)
T - value - public static final <T,E> Expression<T,E> param(SQLType<T,E> type)
T - E - type - public static final ArithmeticExpr<Integer,Integer> count()
public static final Limit limit(int offset, int count)
offset - count - Copyright © 2015–2017 Bridje Framework. All rights reserved.