public class SqlSvrJsonObjectDao extends GeneralJsonObjectDao
GeneralJsonObjectDao.JSONObjectComparatorSELF_ORDER_BY, TABLE_SORT_FIELD, TABLE_SORT_ORDER| 构造器和说明 |
|---|
SqlSvrJsonObjectDao() |
SqlSvrJsonObjectDao(Connection conn) |
SqlSvrJsonObjectDao(Connection conn,
TableInfo tableInfo) |
SqlSvrJsonObjectDao(TableInfo tableInfo) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.alibaba.fastjson.JSONArray |
findObjectsAsJSON(String sSql,
Object[] values,
String[] fieldnames,
int pageNo,
int pageSize) |
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,
int pageNo,
int pageSize) |
List<Object[]> |
findObjectsBySql(String sSql,
Object[] values,
int pageNo,
int pageSize) |
Long |
getSequenceNextValue(String sequenceName)
用表来模拟sequence
create table simulate_sequence (seqname varchar(100) not null primary key,
currvalue integer, increment integer);
|
com.alibaba.fastjson.JSONArray |
listObjectsByProperties(Map<String,Object> properties,
int startPos,
int maxSize)
根据属性进行查询
|
buildFieldSql, buildFieldSqlWithFieldName, buildFilterSql, buildFilterSqlByPk, buildGetObjectSqlByPk, buildInsertSql, buildPartFieldSql, buildPartFieldSqlWithFieldName, buildQuerySqlByProperties, buildUpdateSql, checkHasAllPkColumns, checkHasAllPkColumns, createJsonObjectDao, createJsonObjectDao, createJsonObjectDao, deleteObjectById, deleteObjects, deleteObjectsAsTabulation, deleteObjectsAsTabulation, deleteObjectsByProperties, doExecuteNamedSql, doExecuteSql, doExecuteSql, fetchObjectsCount, fetchSelfOrderSql, fetchSelfOrderSql, findObjectsAsJSON, findObjectsByNamedSql, findObjectsByNamedSqlAsJSON, findObjectsBySql, getConnect, getObjectById, getObjectByProperties, getSimulateSequenceNextValue, getTableInfo, insertObjectsAsTabulation, isPkColumn, listObjectsByProperties, makePkFieldMap, mapFieldToColumnPiece, mapObjectProperties, mapObjectProperties, mergeObject, mergeObject, replaceObjectsAsTabulation, replaceObjectsAsTabulation, replaceObjectsAsTabulation, saveNewObject, setConnect, setTableInfo, updateObject, updateObject, updateObjectsByProperties, updateObjectsByPropertiespublic SqlSvrJsonObjectDao()
public SqlSvrJsonObjectDao(Connection conn)
public SqlSvrJsonObjectDao(TableInfo tableInfo)
public SqlSvrJsonObjectDao(Connection conn, TableInfo tableInfo)
public com.alibaba.fastjson.JSONArray listObjectsByProperties(Map<String,Object> properties, int startPos, int maxSize) throws SQLException, IOException
JsonObjectDaoproperties - propertiesstartPos - startPosmaxSize - maxSizeSQLException - SQLExceptionIOException - IOExceptionpublic Long getSequenceNextValue(String sequenceName) throws SQLException, IOException
sequenceName - sequenceNameSQLException - SQLExceptionIOException - IOExceptionpublic List<Object[]> findObjectsBySql(String sSql, Object[] values, int pageNo, int pageSize) throws SQLException, IOException
sSql - String sql语句values - Object [] 参数pageNo - 当前页码pageSize - 每页大小SQLException - SQLExceptionIOException - IOExceptionpublic List<Object[]> findObjectsByNamedSql(String sSql, Map<String,Object> values, int pageNo, int pageSize) throws SQLException, IOException
public com.alibaba.fastjson.JSONArray findObjectsAsJSON(String sSql, Object[] values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
public com.alibaba.fastjson.JSONArray findObjectsByNamedSqlAsJSON(String sSql, Map<String,Object> values, String[] fieldnames, int pageNo, int pageSize) throws SQLException, IOException
Copyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.