public class AnalyzeSql
extends java.lang.Object
MTConnection
Constructor and Description |
---|
AnalyzeSql(java.lang.String sql)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
appendWhere(java.lang.String additionalWhere)
Append a where clause to the SQL statement.
|
java.lang.String |
getTargetTable()
What is the target table of the insert/update/delete.
|
java.lang.String |
getUpdateWhere()
Get the where clause from the update SQL statement, if any.
|
boolean |
isInsert()
Is this an insert statement?
|
boolean |
isUpdate()
Is this SQL an update statement?
|
public AnalyzeSql(java.lang.String sql)
sql
- The SQL statement to analyze.public java.lang.String getTargetTable()
public boolean isInsert()
public java.lang.String appendWhere(java.lang.String additionalWhere)
additionalWhere
- The where clause to append.public boolean isUpdate()
public java.lang.String getUpdateWhere()