public abstract class CPI extends Object
| 构造器和说明 |
|---|
CPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Record> |
find(Connection conn,
String sql,
Object... paras)
Return the columns map of the record
|
static List<Record> |
find(String configName,
Connection conn,
String sql,
Object... paras) |
static Map<String,Object> |
getAttrs(Model model)
Return the attributes map of the model
|
static Page<Record> |
paginate(Connection conn,
int pageNumber,
int pageSize,
String select,
String sqlExceptSelect,
Object... paras) |
static Page<Record> |
paginate(String configName,
Connection conn,
int pageNumber,
int pageSize,
String select,
String sqlExceptSelect,
Object... paras) |
static <T> List<T> |
query(Connection conn,
String sql,
Object... paras) |
static <T> List<T> |
query(String configName,
Connection conn,
String sql,
Object... paras) |
static int |
update(Connection conn,
String sql,
Object... paras) |
static int |
update(String configName,
Connection conn,
String sql,
Object... paras) |
public static final Map<String,Object> getAttrs(Model model)
model - the model extends from class Modelpublic static <T> List<T> query(Connection conn, String sql, Object... paras) throws SQLException
SQLExceptionpublic static <T> List<T> query(String configName, Connection conn, String sql, Object... paras) throws SQLException
SQLExceptionpublic static List<Record> find(Connection conn, String sql, Object... paras) throws SQLException
record - the Record objectSQLExceptionpublic static List<Record> find(String configName, Connection conn, String sql, Object... paras) throws SQLException
SQLExceptionpublic static Page<Record> paginate(Connection conn, int pageNumber, int pageSize, String select, String sqlExceptSelect, Object... paras) throws SQLException
SQLExceptionpublic static Page<Record> paginate(String configName, Connection conn, int pageNumber, int pageSize, String select, String sqlExceptSelect, Object... paras) throws SQLException
SQLExceptionpublic static int update(Connection conn, String sql, Object... paras) throws SQLException
SQLExceptionpublic static int update(String configName, Connection conn, String sql, Object... paras) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.