public class ParserUtils extends Object
| Constructor and Description |
|---|
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static net.sf.jsqlparser.statement.Statement |
asStatement(String statement) |
static net.sf.jsqlparser.expression.Expression |
getWhere(net.sf.jsqlparser.statement.Statement statement) |
static boolean |
isDelete(String sql) |
static boolean |
isInsert(String sql) |
static boolean |
isSelect(String sql)
We only use the selects that refer to objects in the data base that are meaninful for testing purposes,
when code access to a sequence for example when getting the next id for a new object in the table,
then we don't want to use that select as a target.
|
static boolean |
isUpdate(String sql) |
public static boolean isSelect(String sql)
sql - public static boolean isDelete(String sql)
public static boolean isUpdate(String sql)
public static boolean isInsert(String sql)
public static net.sf.jsqlparser.expression.Expression getWhere(net.sf.jsqlparser.statement.Statement statement)
public static net.sf.jsqlparser.statement.Statement asStatement(String statement)
Copyright © 2016–2021. All rights reserved.