public class JsonObjectWork extends Object implements JsonObjectDao
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
JsonObjectWork() |
JsonObjectWork(BaseDaoImpl<?,?> baseDao,
TableInfo tableInfo) |
JsonObjectWork(TableInfo tableInfo) |
public JsonObjectWork()
public JsonObjectWork(TableInfo tableInfo)
public JsonObjectWork(BaseDaoImpl<?,?> baseDao, TableInfo tableInfo)
public void setBaseDao(BaseDaoImpl<?,?> baseDao)
public void setTableInfo(TableInfo tableInfo)
public JsonObjectDao getCurrentDao() throws SQLException
SQLExceptionpublic <T> T executeRealWork(JsonDaoExecuteWork<T> realWork) throws SQLException, IOException
SQLExceptionIOExceptionpublic TableInfo getTableInfo()
getTableInfo in interface JsonObjectDaopublic com.alibaba.fastjson2.JSONObject getObjectById(Object keyValue) throws SQLException, IOException
getObjectById in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONObject getObjectByProperties(Map<String,Object> properties) throws SQLException, IOException
getObjectByProperties in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray listObjectsByProperties(Map<String,Object> properties) throws SQLException, IOException
listObjectsByProperties in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray listObjectsByProperties(Map<String,Object> properties, int startPos, int maxSize) throws SQLException, IOException
listObjectsByProperties in interface JsonObjectDaoSQLExceptionIOExceptionpublic Long fetchObjectsCount(Map<String,Object> properties) throws SQLException, IOException
fetchObjectsCount in interface JsonObjectDaoSQLExceptionIOExceptionpublic int saveNewObject(Map<String,Object> object) throws SQLException
saveNewObject in interface JsonObjectDaoSQLExceptionpublic Map<String,Object> saveNewObjectAndFetchGeneratedKeys(Map<String,Object> object) throws SQLException, IOException
saveNewObjectAndFetchGeneratedKeys in interface JsonObjectDaoSQLExceptionIOExceptionpublic int updateObject(Collection<String> fields, Map<String,Object> object) throws SQLException
updateObject in interface JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - Map objectSQLExceptionpublic int updateObject(Map<String,Object> object) throws SQLException
updateObject in interface JsonObjectDaoSQLExceptionpublic int mergeObject(Collection<String> fields, Map<String,Object> object) throws SQLException, IOException
mergeObject in interface JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - Map objectSQLExceptionIOExceptionpublic int mergeObject(Map<String,Object> object) throws SQLException, IOException
mergeObject in interface JsonObjectDaoSQLExceptionIOExceptionpublic int updateObjectsByProperties(Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
updateObjectsByProperties in interface JsonObjectDaoSQLExceptionpublic int updateObjectsByProperties(Collection<String> fields, Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
updateObjectsByProperties in interface JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullfieldValues - Map fieldValuesproperties - Map propertiesSQLException - SQLExceptionpublic int deleteObjectById(Object keyValue) throws SQLException
deleteObjectById in interface JsonObjectDaoSQLExceptionpublic int deleteObjectsByProperties(Map<String,Object> properties) throws SQLException
deleteObjectsByProperties in interface JsonObjectDaoSQLExceptionpublic int insertObjectsAsTabulation(List<Map<String,Object>> objects) throws SQLException
insertObjectsAsTabulation in interface JsonObjectDaoSQLExceptionpublic int deleteObjects(List<Object> objects) throws SQLException
deleteObjects in interface JsonObjectDaoSQLExceptionpublic int deleteObjectsAsTabulation(String propertyName, Object propertyValue) throws SQLException
deleteObjectsAsTabulation in interface JsonObjectDaoSQLExceptionpublic int deleteObjectsAsTabulation(Map<String,Object> properties) throws SQLException
deleteObjectsAsTabulation in interface JsonObjectDaoSQLExceptionpublic int replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, List<Map<String,Object>> dbObjects) throws SQLException
replaceObjectsAsTabulation in interface JsonObjectDaoSQLExceptionpublic int replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, String propertyName, Object propertyValue) throws SQLException, IOException
replaceObjectsAsTabulation in interface JsonObjectDaoSQLExceptionIOExceptionpublic int replaceObjectsAsTabulation(List<Map<String,Object>> newObjects, Map<String,Object> properties) throws SQLException, IOException
replaceObjectsAsTabulation in interface JsonObjectDaoSQLExceptionIOExceptionpublic Long getSequenceNextValue(String sequenceName) throws SQLException, IOException
getSequenceNextValue in interface JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsBySql(String sSql, Object[] values) throws SQLException, IOException
findObjectsBySql in interface JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsBySql(String sSql, Object[] values, int pageNo, int pageSize) throws SQLException, IOException
findObjectsBySql in interface JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values) throws SQLException, IOException
findObjectsByNamedSql in interface JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values, int pageNo, int pageSize) throws SQLException, IOException
findObjectsByNamedSql in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames) throws SQLException, IOException
findObjectsAsJSON in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
findObjectsAsJSON in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames) throws SQLException, IOException
findObjectsByNamedSqlAsJSON in interface JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson2.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
findObjectsByNamedSqlAsJSON in interface JsonObjectDaoSQLExceptionIOExceptionpublic boolean doExecuteSql(String sSql) throws SQLException
doExecuteSql in interface JsonObjectDaoSQLExceptionpublic int doExecuteSql(String sSql, Object[] values) throws SQLException
doExecuteSql in interface JsonObjectDaoSQLExceptionpublic int doExecuteNamedSql(String sSql, Map<String,Object> values) throws SQLException
doExecuteNamedSql in interface JsonObjectDaoSQLExceptionCopyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.