public class Action extends Object
| 构造器和说明 |
|---|
Action(Connection conn) |
Action(Connection conn,
Map<String,Object> entity,
String tableName) |
Action(Connection conn,
Object entity) |
Action(Connection conn,
Object entity,
String tableName) |
Action(Connection conn,
String sql) |
Action(DataSource dataSource)
Create a new action.
|
Action(Map<String,Object> entity,
String tableName) |
Action(Object entity) |
Action(Object entity,
String tableName) |
Action(String sql)
Create a new action.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Create |
create(Object... params)
Initialize a create action.
|
UpdateResult |
delete(String tableName,
String idField,
Serializable id)
Execute delete operation.
|
UpdateResult |
deleteWhere(String tableName,
String where)
Execute delete operation.
|
Query |
query(Object... params)
Initialize a query action.
|
Action |
setParams(Object... params) |
Update |
update(Object... params)
Initialize an update action.
|
public Action(DataSource dataSource)
dataSource - The data source to be used to obtain the connection.public Action(Connection conn)
public Action(Connection conn, Map<String,Object> entity, String tableName)
public Action(Connection conn, Object entity, String tableName)
public Action(Object entity)
public Action(Connection conn, Object entity)
public Action(String sql)
sql - The input sql.public Action(Connection conn, String sql)
public Query query(Object... params)
params - The parameters to be bound to the sqlpublic Create create(Object... params)
params - The parameters to be bound to the sqlpublic Update update(Object... params)
params - The parameters to be bound to the sqlpublic UpdateResult delete(String tableName, String idField, Serializable id)
tableName - Which table?idField - The name of the fieldid - The value of id fieldpublic UpdateResult deleteWhere(String tableName, String where)
tableName - Which table?where - The where clauseCopyright © 2016–2026 AJAXJS. All rights reserved.