public class SqlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static SQLException |
createFeatureNotSupportedException() |
static String |
getKeyword(String sql) |
static boolean |
isUpdateSql(String sql)
Determines whether a sql statement is an update (INSERT, UPDATE, or DELETE).
|
public static boolean isUpdateSql(String sql) throws IllegalArgumentException
sql
- Sql stringIllegalArgumentException
- If sql string is invalid and neither a
query or an updatepublic static SQLException createFeatureNotSupportedException()
Copyright © 2018 JBoss by Red Hat. All rights reserved.