public class Update extends BaseAction
startTime| 限定符和类型 | 方法和说明 |
|---|---|
UpdateResult |
delete()
Physical delete on an object.
|
UpdateResult |
delete(Object idValue)
Physical delete on an object.
|
UpdateResult |
delete(String idField,
Object idValue)
Physical delete on an object.
|
UpdateResult |
delete(String tableName,
String idField,
Serializable idValue)
Physical delete by id field and id value.
|
UpdateResult |
deleteWhere(String tableName,
String where)
Physical delete by where clause.
|
UpdateResult |
execute()
Execute the update.
|
UpdateResult |
execute(String where)
Execute the update with where clause.
|
UpdateResult |
update()
Update by any SQL.
|
UpdateResult |
withId()
Execute the update with ID specified row.
|
UpdateResult |
withId(String idField)
Execute the update with ID specified row.
|
UpdateResult |
withId(String idField,
Object idValue)
Execute the update with ID specified row.
|
getResultBean, getResultMappublic Update(Action action)
action - an action object with input Sql, data and config.public UpdateResult update()
public UpdateResult withId()
public UpdateResult withId(String idField)
idField - Actually, the field is already ID in the entity, just tell me.public UpdateResult withId(String idField, Object idValue)
idField - Which row to update, we need the name of that field.idValue - The value of ID.public UpdateResult execute(String where)
where - The where clausepublic UpdateResult execute()
public UpdateResult delete()
public UpdateResult delete(Object idValue)
idValue - The value of id fieldpublic UpdateResult delete(String idField, Object idValue)
idField - The name of the fieldidValue - The value of id fieldpublic UpdateResult delete(String tableName, String idField, Serializable idValue)
tableName - Which table?idField - The name of the fieldidValue - The value of id fieldpublic UpdateResult deleteWhere(String tableName, String where)
tableName - Which table?where - The where clauseCopyright © 2016–2026 AJAXJS. All rights reserved.