public class Entity2WriteSql extends Object
| 构造器和说明 |
|---|
Entity2WriteSql(Map<String,Object> entityMap) |
Entity2WriteSql(Object entityBean) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
everyBeanField(Object entity,
BiConsumer<String,Object> everyBeanField)
Do the iteration of a Java Bean
|
void |
getDeleteSql(String idField,
Object idValue) |
void |
getInsertSql() |
static String |
getTableNameByBean(Object javaBean) |
void |
getUpdateSql(boolean isUpdateAllRow,
String idField)
Generate SQL for update.
|
void |
getUpdateSql(String where) |
void |
getUpdateSqlWithId(String idField)
Generate SQL for update with ID specified row.
|
void |
getUpdateSqlWithId(String idField,
Object idValue)
Generate SQL for update with ID specified row.
|
public Entity2WriteSql(Object entityBean)
public void getInsertSql()
public void getUpdateSql(boolean isUpdateAllRow,
String idField)
public void getUpdateSqlWithId(String idField, Object idValue)
idField - Which row to update, we need the name of that field.idValue - The value of ID.public void getUpdateSqlWithId(String idField)
idField - Which row to update, we need the name of that field. Actually, the field is already ID in the entity, just tell me.public void getUpdateSql(String where)
public static void everyBeanField(Object entity, BiConsumer<String,Object> everyBeanField)
entity - EntityeveryBeanField - An iterator for a Java BeanCopyright © 2016–2026 AJAXJS. All rights reserved.