Package cc.carm.lib.easysql.builder.impl
Class QueryBuilderImpl
- java.lang.Object
-
- cc.carm.lib.easysql.builder.AbstractSQLBuilder
-
- cc.carm.lib.easysql.builder.impl.QueryBuilderImpl
-
- All Implemented Interfaces:
QueryBuilder,SQLBuilder
public class QueryBuilderImpl extends AbstractSQLBuilder implements QueryBuilder
-
-
Constructor Summary
Constructors Constructor Description QueryBuilderImpl(@NotNull SQLManagerImpl manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TableQueryBuilderinTable(@NotNull java.lang.String tableName)创建表查询PreparedQueryActionwithPreparedSQL(@NotNull java.lang.String sql)通过一条 SQL语句创建预查询QueryActionwithSQL(@NotNull java.lang.String sql)Deprecated.-
Methods inherited from class cc.carm.lib.easysql.builder.AbstractSQLBuilder
getManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLBuilder
getManager
-
-
-
-
Constructor Detail
-
QueryBuilderImpl
public QueryBuilderImpl(@NotNull @NotNull SQLManagerImpl manager)
-
-
Method Detail
-
withSQL
@Deprecated public QueryAction withSQL(@NotNull @NotNull java.lang.String sql)
Deprecated.Description copied from interface:QueryBuilder通过一条 SQL语句创建查询。 该方法使用 Statement 实现,请注意SQL注入风险!- Specified by:
withSQLin interfaceQueryBuilder- Parameters:
sql- SQL语句- Returns:
QueryAction
-
withPreparedSQL
public PreparedQueryAction withPreparedSQL(@NotNull @NotNull java.lang.String sql)
Description copied from interface:QueryBuilder通过一条 SQL语句创建预查询- Specified by:
withPreparedSQLin interfaceQueryBuilder- Parameters:
sql- SQL语句- Returns:
PreparedQueryAction
-
inTable
public TableQueryBuilder inTable(@NotNull @NotNull java.lang.String tableName)
Description copied from interface:QueryBuilder创建表查询- Specified by:
inTablein interfaceQueryBuilder- Parameters:
tableName- 表名- Returns:
TableQueryBuilder
-
-