com.github.drinkjava2.jdialects
Class DialectJdbcUtils

java.lang.Object
  extended by com.github.drinkjava2.jdialects.DialectJdbcUtils

public abstract class DialectJdbcUtils
extends Object

Some simple JDBC method

Since:
1.0.0
Author:
Yong Zhu

Constructor Summary
DialectJdbcUtils()
           
 
Method Summary
static void closeRSandPST(ResultSet rs, PreparedStatement pst, SQLException exception, String sql, Object... params)
           
static void hotExecuteSql(Connection conn, String sql)
           
static Long hotQueryForLong(Connection conn, String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectJdbcUtils

public DialectJdbcUtils()
Method Detail

hotQueryForLong

public static Long hotQueryForLong(Connection conn,
                                   String sql)
                            throws SQLException
Throws:
SQLException

hotExecuteSql

public static void hotExecuteSql(Connection conn,
                                 String sql)
                          throws SQLException
Throws:
SQLException

closeRSandPST

public static void closeRSandPST(ResultSet rs,
                                 PreparedStatement pst,
                                 SQLException exception,
                                 String sql,
                                 Object... params)
                          throws SQLException
Throws:
SQLException


Copyright © 2017. All rights reserved.