public interface JsonObjectDao
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteObjectById(Object keyValue)
删除,单主键
|
int |
deleteObjects(List<Object> objects)
批量删除
|
int |
deleteObjectsAsTabulation(Map<String,Object> properties)
根据外键批量删除,符合外键
|
int |
deleteObjectsAsTabulation(String propertyName,
Object propertyValue)
根据外键批量删除,单外键
|
int |
deleteObjectsByProperties(Map<String,Object> properties)
根据属性 批量删除
|
int |
doExecuteNamedSql(String sSql,
Map<String,Object> values) |
boolean |
doExecuteSql(String sSql) |
int |
doExecuteSql(String sSql,
Object[] values) |
Long |
fetchObjectsCount(Map<String,Object> properties)
根据属性进行并获取总数
|
com.alibaba.fastjson.JSONArray |
findObjectsAsJSON(String sSql,
Object[] values,
String[] fieldnames) |
com.alibaba.fastjson.JSONArray |
findObjectsAsJSON(String sSql,
Object[] values,
String[] fieldnames,
int pageNo,
int pageSize) |
List<Object[]> |
findObjectsByNamedSql(String sSql,
Map<String,Object> values) |
List<Object[]> |
findObjectsByNamedSql(String sSql,
Map<String,Object> values,
int pageNo,
int pageSize) |
com.alibaba.fastjson.JSONArray |
findObjectsByNamedSqlAsJSON(String sSql,
Map<String,Object> values,
String[] fieldnames) |
com.alibaba.fastjson.JSONArray |
findObjectsByNamedSqlAsJSON(String sSql,
Map<String,Object> values,
String[] fieldnames,
int pageNo,
int pageSize) |
List<Object[]> |
findObjectsBySql(String sSql,
Object[] values)
查询带参数的SQL语句
|
List<Object[]> |
findObjectsBySql(String sSql,
Object[] values,
int pageNo,
int pageSize) |
com.alibaba.fastjson.JSONObject |
getObjectById(Object keyValue)
单主键表
|
com.alibaba.fastjson.JSONObject |
getObjectByProperties(Map<String,Object> properties)
根据属性查询对象
|
Long |
getSequenceNextValue(String sequenceName)
获取Sequence的值,不支持的Sequence数据库可以用一个表或者存储过程来模拟
|
TableInfo |
getTableInfo() |
int |
insertObjectsAsTabulation(List<Map<String,Object>> objects)
批量添加多条记录
|
com.alibaba.fastjson.JSONArray |
listObjectsByProperties(Map<String,Object> properties) |
com.alibaba.fastjson.JSONArray |
listObjectsByProperties(Map<String,Object> properties,
int startPos,
int maxSize)
根据属性进行查询
|
int |
mergeObject(Collection<String> fields,
Map<String,Object> object)
更改部分属性
|
int |
mergeObject(Map<String,Object> object)
合并
|
int |
replaceObjectsAsTabulation(List<Map<String,Object>> newObjects,
List<Map<String,Object>> dbObjects)
用新的列表覆盖数据库中的列表
|
int |
replaceObjectsAsTabulation(List<Map<String,Object>> newObjects,
Map<String,Object> properties)
用新的列表覆盖数据库中的内容,通过复合外键查询列表
|
int |
replaceObjectsAsTabulation(List<Map<String,Object>> newObjects,
String propertyName,
Object propertyValue)
用新的列表覆盖数据库中的内容,通过单外键查询列表
|
int |
saveNewObject(Map<String,Object> object) |
int |
updateObject(Collection<String> fields,
Map<String,Object> object)
更改部分属性
|
int |
updateObject(Map<String,Object> object)
更改部分属性
|
int |
updateObjectsByProperties(Collection<String> fields,
Map<String,Object> fieldValues,
Map<String,Object> properties)
根据条件批量更新 对象
|
int |
updateObjectsByProperties(Map<String,Object> fieldValues,
Map<String,Object> properties)
根据条件批量更新 对象
|
TableInfo getTableInfo()
com.alibaba.fastjson.JSONObject getObjectById(Object keyValue) throws SQLException, IOException
keyValue - keyValueSQLException - SQLExceptionIOException - IOExceptioncom.alibaba.fastjson.JSONObject getObjectByProperties(Map<String,Object> properties) throws SQLException, IOException
properties - propertiesSQLException - SQLExceptionIOException - IOExceptioncom.alibaba.fastjson.JSONArray listObjectsByProperties(Map<String,Object> properties) throws SQLException, IOException
properties - propertiesSQLException - SQLExceptionIOException - IOExceptioncom.alibaba.fastjson.JSONArray listObjectsByProperties(Map<String,Object> properties, int startPos, int maxSize) throws SQLException, IOException
properties - propertiesstartPos - startPosmaxSize - maxSizeSQLException - SQLExceptionIOException - IOExceptionLong fetchObjectsCount(Map<String,Object> properties) throws SQLException, IOException
properties - propertiesSQLException - SQLExceptionIOException - IOExceptionLong getSequenceNextValue(String sequenceName) throws SQLException, IOException
sequenceName - sequenceNameSQLException - SQLExceptionIOException - IOExceptionint saveNewObject(Map<String,Object> object) throws SQLException
SQLExceptionint updateObject(Collection<String> fields, Map<String,Object> object) throws SQLException
fields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - objectSQLException - SQLExceptionint updateObject(Map<String,Object> object) throws SQLException
object - objectSQLException - SQLExceptionint mergeObject(Collection<String> fields, Map<String,Object> object) throws SQLException, IOException
fields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - objectSQLException - SQLExceptionIOException - IOExceptionint mergeObject(Map<String,Object> object) throws SQLException, IOException
object - objectSQLException - SQLExceptionIOException - IOExceptionint updateObjectsByProperties(Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
fieldValues - propertiesproperties - propertiesSQLException - SQLExceptionint updateObjectsByProperties(Collection<String> fields, Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
fields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullfieldValues - fieldValuesproperties - propertiesSQLException - SQLExceptionint deleteObjectById(Object keyValue) throws SQLException
keyValue - keyValueSQLException - SQLExceptionint deleteObjectsByProperties(Map<String,Object> properties) throws SQLException
properties - propertiesSQLException - SQLExceptionint insertObjectsAsTabulation(List<Map<String,Object>> objects) throws SQLException
objects - JSONArraySQLException - SQLExceptionint deleteObjects(List<Object> objects) throws SQLException
objects - JSONArraySQLException - SQLExceptionint deleteObjectsAsTabulation(String propertyName, Object propertyValue) throws SQLException
propertyName - StringpropertyValue - ObjectSQLException - SQLExceptionint deleteObjectsAsTabulation(Map<String,Object> properties) throws SQLException
properties - ObjectSQLException - SQLExceptionint replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, List<Map<String,Object>> dbObjects) throws SQLException
dbObjects - JSONArraynewObjects - JSONArraySQLException - SQLExceptionint replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, String propertyName, Object propertyValue) throws SQLException, IOException
newObjects - JSONArraypropertyName - StringpropertyValue - ObjectSQLException - SQLExceptionIOException - IOExceptionint replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, Map<String,Object> properties) throws SQLException, IOException
newObjects - newObjectsproperties - propertiesSQLException - SQLExceptionIOException - IOExceptionList<Object[]> findObjectsBySql(String sSql, Object[] values) throws SQLException, IOException
sSql - String sql语句values - Object [] 参数SQLException - SQLExceptionIOException - IOExceptionList<Object[]> findObjectsBySql(String sSql, Object[] values, int pageNo, int pageSize) throws SQLException, IOException
sSql - String sql语句values - Object [] 参数pageNo - 当前页码pageSize - 每页大小SQLException - SQLExceptionIOException - IOExceptionList<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values) throws SQLException, IOException
List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values, int pageNo, int pageSize) throws SQLException, IOException
com.alibaba.fastjson.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames) throws SQLException, IOException
com.alibaba.fastjson.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
com.alibaba.fastjson.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames) throws SQLException, IOException
com.alibaba.fastjson.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
boolean doExecuteSql(String sSql) throws SQLException
SQLExceptionint doExecuteSql(String sSql, Object[] values) throws SQLException
SQLExceptionint doExecuteNamedSql(String sSql, Map<String,Object> values) throws SQLException
SQLExceptionCopyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.