public interface AQSqlFormatter
Modifier and Type | Method and Description |
---|---|
String |
format(String script)
Beautifies a SQL script.
|
void |
setAlignmentOnJoin(boolean value)
Defines whether to align the script on JOIN operation.
|
void |
setAlignmentOnOperator(boolean value)
Defines whether to align the script on operators.
|
void |
setBreakAfterComma(boolean value)
Defines whether a line break should be inserted after a comma.
|
void |
setBreakAfterKeywords(boolean value)
Defines whether a line break should be inserted after a keyword.
|
void |
setBreakAfterLogical(boolean value)
Defines whether a line break should be inserted after a logical operation.
|
void |
setBreakBeforeComma(boolean value)
Defines whether a line break should be inserted before a comma.
|
void |
setBreakBeforeLogical(boolean value)
Defines whether a line break should be inserted before a logical operation.
|
void |
setBreakForBrackets(boolean value)
Defines whether a line break should be inserted after a bracket.
|
void |
setBreakForCaseKeywords(boolean value)
Defines whether a line break should be inserted before a case keyword.
|
void |
setIndentSpaces(int indent)
Sets the number of spaces to use in indentation.
|
void |
setLineLength(int length)
Sets maximum line length for wrapping.
|
void |
setUpperCaseAll(boolean value)
Specifies whether the entire script should be converted to uppercase.
|
void |
setUpperCaseKeywords(boolean value)
Defines whether keywords should be converted to upper case.
|
void |
setUpperCaseNonKeywords(boolean value)
Specifies whether the non SQL keywords in the script should be converted to uppercase.
|
void |
setUseTabIndent(boolean value)
Defines whether a TAB character should be used for indentation.
|
void |
setWrapLine(boolean value)
Defines whether to wrap long lines.
|
String format(String script)
script
- SQL script to re-format.void setBreakAfterLogical(boolean value)
value
- the specified valuevoid setBreakAfterKeywords(boolean value)
value
- the specified valuevoid setBreakBeforeComma(boolean value)
value
- the specified valuevoid setBreakAfterComma(boolean value)
value
- the specified valuevoid setBreakBeforeLogical(boolean value)
value
- the specified valuevoid setBreakForBrackets(boolean value)
value
- the specified valuevoid setBreakForCaseKeywords(boolean value)
value
- the specified valuevoid setUpperCaseAll(boolean value)
value
- the specified valuevoid setUpperCaseNonKeywords(boolean value)
value
- the specified valuevoid setUpperCaseKeywords(boolean value)
value
- the specified valuevoid setIndentSpaces(int indent)
indent
- Indent value.void setUseTabIndent(boolean value)
value
- the specified valuevoid setAlignmentOnOperator(boolean value)
value
- the specified valuevoid setAlignmentOnJoin(boolean value)
value
- the specified valuevoid setWrapLine(boolean value)
value
- the specified valuevoid setLineLength(int length)
length
- New line length.
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.