Package cc.carm.lib.easysql.api.builder
Interface QueryBuilder
-
- All Superinterfaces:
SQLBuilder
public interface QueryBuilder extends SQLBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TableQueryBuilder
inTable(@NotNull java.lang.String tableName)
创建表查询PreparedQueryAction
withPreparedSQL(@NotNull java.lang.String sql)
通过一条 SQL语句创建预查询QueryAction
withSQL(@NotNull java.lang.String sql)
Deprecated.存在SQL注入风险,建议使用withPreparedSQL(String)
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLBuilder
getManager
-
-
-
-
Method Detail
-
withSQL
@Deprecated QueryAction withSQL(@NotNull @NotNull java.lang.String sql)
Deprecated.存在SQL注入风险,建议使用withPreparedSQL(String)
通过一条 SQL语句创建查询。 该方法使用 Statement 实现,请注意SQL注入风险!- Parameters:
sql
- SQL语句- Returns:
QueryAction
-
withPreparedSQL
PreparedQueryAction withPreparedSQL(@NotNull @NotNull java.lang.String sql)
通过一条 SQL语句创建预查询- Parameters:
sql
- SQL语句- Returns:
PreparedQueryAction
-
inTable
TableQueryBuilder inTable(@NotNull @NotNull java.lang.String tableName)
创建表查询- Parameters:
tableName
- 表名- Returns:
TableQueryBuilder
-
-