| java.lang.Object com.mockrunner.jdbc.SQLUtil
SQLUtil | public class SQLUtil (Code) | | Simple util class for SQL statements
|
Method Summary | |
public static void | checkFetchDirection(int fetchDirection) | public static boolean | isSelect(String sql) Returns if the specified SQL string is a select, i.e. |
checkFetchDirection | public static void checkFetchDirection(int fetchDirection) throws SQLException(Code) | | Throws an SQLException if the specified
fetchDirection is invalid
Parameters: fetchDirection - the fetch direction |
isSelect | public static boolean isSelect(String sql)(Code) | | Returns if the specified SQL string is a select, i.e.
contains the string select (case insensitive).
Parameters: sql - the SQL string true if the specified SQL string is a select |
|
|