use of com.ctrip.platform.dal.dao.sqlbuilder.SelectSqlBuilder in project dal by ctripcorp.
the class DaoBySqlBuilder method getAllTasks.
public List<GenTaskBySqlBuilder> getAllTasks() throws SQLException {
DalHints hints = DalHints.createIfAbsent(null);
SelectSqlBuilder builder = new SelectSqlBuilder().selectAll();
List<GenTaskBySqlBuilder> list = client.query(builder, hints);
processList(list);
return list;
}
use of com.ctrip.platform.dal.dao.sqlbuilder.SelectSqlBuilder in project dal by ctripcorp.
the class TestTableDaoForSetObject method count.
/**
* Get the all records count
*/
public int count(DalHints hints) throws SQLException {
hints = DalHints.createIfAbsent(hints);
SelectSqlBuilder builder = new SelectSqlBuilder().selectCount();
return client.count(builder, hints).intValue();
}
use of com.ctrip.platform.dal.dao.sqlbuilder.SelectSqlBuilder in project dal by ctripcorp.
the class TestTableDao method queryAll.
/**
* Get all records from table
*/
public List<TestTable> queryAll(DalHints hints) throws SQLException {
hints = DalHints.createIfAbsent(hints);
SelectSqlBuilder builder = new SelectSqlBuilder().selectAll().orderBy("ID", ASC);
return client.query(builder, hints);
}
use of com.ctrip.platform.dal.dao.sqlbuilder.SelectSqlBuilder in project dal by ctripcorp.
the class TestTableDao method count.
/**
* Get the all records count
*/
public int count(DalHints hints) throws SQLException {
hints = DalHints.createIfAbsent(hints);
SelectSqlBuilder builder = new SelectSqlBuilder().selectCount();
return client.count(builder, hints).intValue();
}
use of com.ctrip.platform.dal.dao.sqlbuilder.SelectSqlBuilder in project dal by ctripcorp.
the class TestTableDao method count.
/**
* Get the all records count
*/
public int count(DalHints hints) throws SQLException {
hints = DalHints.createIfAbsent(hints);
SelectSqlBuilder builder = new SelectSqlBuilder().selectCount();
return client.count(builder, hints).intValue();
}
Aggregations