public abstract class AbstractStatementTypeDetector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
DETECTION_REGEX |
protected static String |
OPERATION_REGEX_TEMPLATE |
protected QueryType |
QUERY_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStatementTypeDetector(QueryType detectsQueryType,
String detectionRegex) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
cleanup(String sql)
Cleans up the sql string for a successful detection
|
QueryType |
getType()
Gets the QueryType that this detector detects.
|
boolean |
isOfType(String sql)
Checks if a given sql string is of this kind
|
protected static final String OPERATION_REGEX_TEMPLATE
protected final QueryType QUERY_TYPE
protected final String DETECTION_REGEX
public boolean isOfType(String sql)
sql - SQL Stringpublic QueryType getType()
Copyright © 2024. All rights reserved.