// Path: database/src/main/java/com/simple/database/crud/base/WhereBuilder.java
// public abstract class WhereBuilder<T> extends BaseSQLBuilder<T> {
//     protected String selection = null;
//     protected String[] selectionArgs = null;
// 
//     /**
//      * @param daoClass 同步的dao类,用于构建异步的dao类
//      */
//     public WhereBuilder(Class daoClass) {
//         super(daoClass);
//     }
// 
//     /**
//      * where 查询条件
//      *
//      * @param selection
//      * @param selectionArgs
//      * @return
//      */
//     public WhereBuilder where(String selection, String[] selectionArgs) {
//         this.selection = selection;
//         this.selectionArgs = selectionArgs;
//         return this;
//     }
// }
// 
// Path: database/src/main/java/com/simple/database/listeners/DbListener.java
// public interface DbListener<T> {
//     void onComplete(T result);
// }


import com.simple.database.crud.base.WhereBuilder;
import com.simple.database.listeners.DbListener;
import java.util.List;
package com.simple.database.crud;



/**
 * 查询数据的Builder, 能设置 where 、orderBy、limit参数.
 *
 * @param <T> 要返回的数据类型
 */
public class QueryBuilder<T> extends WhereBuilder {
    private String orderBy = null;
    private String limit = null;
// Path: database/src/main/java/com/simple/database/crud/base/WhereBuilder.java
// public abstract class WhereBuilder<T> extends BaseSQLBuilder<T> {
//     protected String selection = null;
//     protected String[] selectionArgs = null;
// 
//     /**
//      * @param daoClass 同步的dao类,用于构建异步的dao类
//      */
//     public WhereBuilder(Class daoClass) {
//         super(daoClass);
//     }
// 
//     /**
//      * where 查询条件
//      *
//      * @param selection
//      * @param selectionArgs
//      * @return
//      */
//     public WhereBuilder where(String selection, String[] selectionArgs) {
//         this.selection = selection;
//         this.selectionArgs = selectionArgs;
//         return this;
//     }
// }
// 
// Path: database/src/main/java/com/simple/database/listeners/DbListener.java
// public interface DbListener<T> {
//     void onComplete(T result);
// }


// Path: database/src/main/java/com/simple/database/crud/QueryBuilder.java
import com.simple.database.crud.base.WhereBuilder;
import com.simple.database.listeners.DbListener;
import java.util.List;

package com.simple.database.crud;



/**
 * 查询数据的Builder, 能设置 where 、orderBy、limit参数.
 *
 * @param <T> 要返回的数据类型
 */
public class QueryBuilder<T> extends WhereBuilder {
    private String orderBy = null;
    private String limit = null;
    private DbListener<List<T>> mDbListListener;