public final class SqlNormalizer extends Object
Constructor and Description |
---|
SqlNormalizer(List<String> batch)
Constructor for batch normalization.
|
SqlNormalizer(String sql)
Creates SQL normalizer and performs the normalization.
|
Modifier and Type | Method and Description |
---|---|
String |
getNormalizedSql()
Returns the normalized SQL.
|
String |
getSql()
Returns the original SQL.
|
String |
getType()
Returns SQL type which is typically first word of the SQL (insert, select, etc).
|
String |
toString()
Returns human readable string describing this SQL normalizer.
|
public SqlNormalizer(String sql)
sql
- SQL to normalizepublic SqlNormalizer(List<String> batch)
batch
- list of statementspublic String getNormalizedSql()
public String getType()
Copyright © 2019. All rights reserved.