public class DBTemplate extends DBOperations
| 构造器和说明 |
|---|
DBTemplate() |
public <T> T queryForObject(String sql, Object... params) throws SQLException
queryForObject 在类中 DBOperationsSQLExceptionpublic <T> T queryForObject(String sql, Class<T> clazz, Object... params) throws SQLException
queryForObject 在类中 DBOperationsSQLExceptionpublic <T> T queryForObject(Connection conn, String sql, Class<T> clazz, Object... params) throws SQLException
queryForObject 在类中 DBOperationsSQLExceptionpublic Long queryForLong(String sql, Object... params) throws SQLException
queryForLong 在类中 DBOperationsSQLExceptionpublic Integer queryForInt(String sql, Object... params) throws SQLException
queryForInt 在类中 DBOperationsSQLExceptionpublic String queryForString(String sql, Object... params) throws SQLException
queryForString 在类中 DBOperationsSQLExceptionpublic <T> List<T> queryForList(Connection conn, String sql, Class<T> clazz, Object... params) throws SQLException
queryForList 在类中 DBOperationsSQLExceptionpublic <T> List<T> queryForList(String sql, Class<T> clazz, Object... params) throws SQLException
queryForList 在类中 DBOperationsSQLExceptionpublic List<Map<String,Object>> queryForList(Connection conn, String sql, Object... params) throws SQLException
queryForList 在类中 DBOperationsSQLExceptionpublic List<Map<String,Object>> queryForList(String sql, Object... params) throws SQLException
queryForList 在类中 DBOperationsSQLExceptionpublic List<Map<String,Object>> queryForLinkedMapList(String sql, Object... params) throws SQLException
queryForLinkedMapList 在类中 DBOperationsSQLExceptionpublic Map<String,Object> queryForMap(Connection conn, String sql, Object... params) throws SQLException
queryForMap 在类中 DBOperationsSQLExceptionpublic Map<String,Object> queryForMap(String sql, Object... params) throws SQLException
queryForMap 在类中 DBOperationsSQLExceptionpublic Map<String,Object> queryForLinkedMap(String sql) throws SQLException
queryForLinkedMap 在类中 DBOperationsSQLExceptionpublic Map<String,Object> queryForLinkedMap(String sql, Object... params) throws SQLException
queryForLinkedMap 在类中 DBOperationsSQLExceptionpublic int update(String sql, Object... params) throws SQLException
update 在类中 DBOperationsSQLExceptionpublic int update(Connection conn, String sql, Object... params) throws SQLException
update 在类中 DBOperationsSQLExceptionpublic int insert(String sql, Object... params) throws SQLException
insert 在类中 DBOperationsSQLExceptionpublic int insert(Connection conn, String sql, Object... params) throws SQLException
insert 在类中 DBOperationsSQLExceptionpublic int execute(String sql, Object... params) throws SQLException
execute 在类中 DBOperationsSQLExceptionpublic int[] batchUpdate(String sql, List<Object[]> list) throws SQLException
batchUpdate 在类中 DBOperationsSQLExceptionpublic int[] batchUpdate(String sql, Object... obj) throws SQLException
batchUpdate 在类中 DBOperationsSQLExceptionpublic int[] batchUpdate(List<String> list) throws SQLException
batchUpdate 在类中 DBOperationsSQLExceptionCopyright © 2019. All rights reserved.