public class JsonObjectWork extends Object implements com.centit.support.database.jsonmaptable.JsonObjectDao
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
JsonObjectWork() |
JsonObjectWork(BaseDaoImpl<?,?> baseDao,
com.centit.support.database.metadata.TableInfo tableInfo) |
JsonObjectWork(com.centit.support.database.metadata.TableInfo tableInfo) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteObjectById(Map<String,Object> keyValues) |
int |
deleteObjectById(Object keyValue) |
int |
deleteObjects(com.alibaba.fastjson.JSONArray 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) |
List<Object[]> |
findObjectsBySql(String sSql,
Object[] values,
int pageNo,
int pageSize) |
com.alibaba.fastjson.JSONObject |
getObjectById(Map<String,Object> keyValues) |
com.alibaba.fastjson.JSONObject |
getObjectById(Object keyValue) |
com.alibaba.fastjson.JSONObject |
getObjectByProperties(Map<String,Object> properties) |
Long |
getSequenceNextValue(String sequenceName) |
com.centit.support.database.metadata.TableInfo |
getTableInfo() |
int |
insertObjectsAsTabulation(com.alibaba.fastjson.JSONArray 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(com.alibaba.fastjson.JSONArray newObjects,
com.alibaba.fastjson.JSONArray dbObjects) |
int |
replaceObjectsAsTabulation(com.alibaba.fastjson.JSONArray newObjects,
Map<String,Object> properties) |
int |
replaceObjectsAsTabulation(com.alibaba.fastjson.JSONArray newObjects,
String propertyName,
Object propertyValue) |
int |
saveNewObject(Map<String,Object> object) |
void |
setBaseDao(BaseDaoImpl<?,?> baseDao) |
void |
setTableInfo(com.centit.support.database.metadata.TableInfo tableInfo) |
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) |
public JsonObjectWork()
public JsonObjectWork(com.centit.support.database.metadata.TableInfo tableInfo)
public JsonObjectWork(BaseDaoImpl<?,?> baseDao, com.centit.support.database.metadata.TableInfo tableInfo)
public void setBaseDao(BaseDaoImpl<?,?> baseDao)
public void setTableInfo(com.centit.support.database.metadata.TableInfo tableInfo)
public com.centit.support.database.metadata.TableInfo getTableInfo()
getTableInfo 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaopublic com.alibaba.fastjson.JSONObject getObjectById(Object keyValue) throws SQLException, IOException
getObjectById 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONObject getObjectById(Map<String,Object> keyValues) throws SQLException, IOException
getObjectById 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONObject getObjectByProperties(Map<String,Object> properties) throws SQLException, IOException
getObjectByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray listObjectsByProperties(Map<String,Object> properties) throws SQLException, IOException
listObjectsByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray listObjectsByProperties(Map<String,Object> properties, int startPos, int maxSize) throws SQLException, IOException
listObjectsByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic Long fetchObjectsCount(Map<String,Object> properties) throws SQLException, IOException
fetchObjectsCount 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic int saveNewObject(Map<String,Object> object) throws SQLException
saveNewObject 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int updateObject(Collection<String> fields, Map<String,Object> object) throws SQLException
updateObject 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - Map objectSQLExceptionpublic int updateObject(Map<String,Object> object) throws SQLException
updateObject 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int mergeObject(Collection<String> fields, Map<String,Object> object) throws SQLException, IOException
mergeObject 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullobject - Map objectSQLExceptionIOExceptionpublic int mergeObject(Map<String,Object> object) throws SQLException, IOException
mergeObject 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic int updateObjectsByProperties(Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
updateObjectsByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int updateObjectsByProperties(Collection<String> fields, Map<String,Object> fieldValues, Map<String,Object> properties) throws SQLException
updateObjectsByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaofields - 更改部分属性 属性名 集合,应为有的Map 不允许 值为null,这样这些属性 用map就无法修改为 nullfieldValues - Map fieldValuesproperties - Map propertiesSQLException - SQLExceptionpublic int deleteObjectById(Object keyValue) throws SQLException
deleteObjectById 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int deleteObjectById(Map<String,Object> keyValues) throws SQLException
deleteObjectById 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int deleteObjectsByProperties(Map<String,Object> properties) throws SQLException
deleteObjectsByProperties 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int insertObjectsAsTabulation(com.alibaba.fastjson.JSONArray objects)
throws SQLException
insertObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int deleteObjects(com.alibaba.fastjson.JSONArray objects)
throws SQLException
deleteObjects 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int deleteObjectsAsTabulation(String propertyName, Object propertyValue) throws SQLException
deleteObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int deleteObjectsAsTabulation(Map<String,Object> properties) throws SQLException
deleteObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int replaceObjectsAsTabulation(com.alibaba.fastjson.JSONArray newObjects,
com.alibaba.fastjson.JSONArray dbObjects)
throws SQLException
replaceObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int replaceObjectsAsTabulation(com.alibaba.fastjson.JSONArray newObjects,
String propertyName,
Object propertyValue)
throws SQLException,
IOException
replaceObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic int replaceObjectsAsTabulation(com.alibaba.fastjson.JSONArray newObjects,
Map<String,Object> properties)
throws SQLException,
IOException
replaceObjectsAsTabulation 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic Long getSequenceNextValue(String sequenceName) throws SQLException, IOException
getSequenceNextValue 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsBySql(String sSql, Object[] values) throws SQLException, IOException
findObjectsBySql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsBySql(String sSql, Object[] values, int pageNo, int pageSize) throws SQLException, IOException
findObjectsBySql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values) throws SQLException, IOException
findObjectsByNamedSql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values, int pageNo, int pageSize) throws SQLException, IOException
findObjectsByNamedSql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames) throws SQLException, IOException
findObjectsAsJSON 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
findObjectsAsJSON 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames) throws SQLException, IOException
findObjectsByNamedSqlAsJSON 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic com.alibaba.fastjson.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
findObjectsByNamedSqlAsJSON 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionIOExceptionpublic boolean doExecuteSql(String sSql) throws SQLException
doExecuteSql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int doExecuteSql(String sSql, Object[] values) throws SQLException
doExecuteSql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionpublic int doExecuteNamedSql(String sSql, Map<String,Object> values) throws SQLException
doExecuteNamedSql 在接口中 com.centit.support.database.jsonmaptable.JsonObjectDaoSQLExceptionCopyright © 2018 江苏南大先腾信息产业股份有限公司. All rights reserved.