JSQLFormatter 5.1-SNAPSHOT API¶
Base Package: com.manticore.jsqlformatter
Base¶
JSQLFormatter.BackSlashQuoting¶
[YES, NO]
JSQLFormatter.BreakLine¶
[NEVER, AS_NEEDED, AFTER_FIRST, ALWAYS]
JSQLFormatter.FormattingOption¶
[SQUARE_BRACKET_QUOTATION, BACKSLASH_QUOTING, OUTPUT_FORMAT, KEYWORD_SPELLING, FUNCTION_SPELLING, OBJECT_SPELLING, SEPARATION, INDENT_WIDTH, SHOW_LINE_NUMBERS, STATEMENT_TERMINATOR]
JSQLFormatter.OutputFormat¶
[PLAIN, ANSI, HTML, RTF, XSLFO]
JSQLFormatter.Separation¶
[BEFORE, AFTER]
JSQLFormatter.ShowLineNumbers¶
[YES, NO]
JSQLFormatter.Spelling¶
[UPPER, LOWER, CAMEL, KEEP]
JSQLFormatter.SquaredBracketQuotation¶
[AUTO, YES, NO]
JSQLFormatter.StatementTerminator¶
[SEMICOLON, NONE, GO, BACKSLASH]
Comment¶
extends: Object implements: Comparable
Comment (absolutePosition, text)
int absolutePosition
String text
@Override
toString () → String
returns String
CommentMap¶
extends: LinkedHashMap
CommentMap (sqlStr)
String sqlStr
@SuppressWarnings
insertComments (sqlStrWithoutComments, outputFormat) → StringBuilder
StringBuilder sqlStrWithoutComments
OutputFormat outputFormat
returns StringBuilder
getLength () → int
returns int
JSQLFormatter¶
extends: Object
A powerful Java SQL Formatter based on the JSQLParser.
JSQLFormatter ()
getSquaredBracketQuotation () → SquaredBracketQuotation
returns SquaredBracketQuotation
setSquaredBracketQuotation (squaredBracketQuotation)
SquaredBracketQuotation squaredBracketQuotation
getBackSlashQuoting () → BackSlashQuoting
returns BackSlashQuoting
setBackSlashQuoting (backSlashQuoting)
BackSlashQuoting backSlashQuoting
getStatementTerminator () → StatementTerminator
returns StatementTerminator
setStatementTerminator (statementTerminator)
StatementTerminator statementTerminator
getSeparation () → Separation
returns Separation
setSeparation (separation)
Separation separation
getKeywordSpelling () → Spelling
returns Spelling
setKeywordSpelling (keywordSpelling)
Spelling keywordSpelling
getFunctionSpelling () → Spelling
returns Spelling
setFunctionSpelling (functionSpelling)
Spelling functionSpelling
getObjectSpelling () → Spelling
returns Spelling
setObjectSpelling (objectSpelling)
Spelling objectSpelling
getOutputFormat () → OutputFormat
returns OutputFormat
setOutputFormat (outputFormat)
OutputFormat outputFormat
getIndentWidth () → int
returns int
setIndentWidth (indentWidth)
int indentWidth
getIndentString () → String
returns String
setIndentString (indentString)
String indentString
getAbsoluteFile (filename) → File
String filename
returns File
getAbsoluteFileName (filename) → String
String filename
returns String
@SuppressWarnings
verify (sqlStr, options) → ArrayList
String sqlStr
String options
returns ArrayList
@SuppressWarnings
format (sqlStr, options) → String
String sqlStr
String options
returns String
formatToJava (sqlStr, indent, options) → StringBuilder
String sqlStr
int indent
String options
returns StringBuilder
@SuppressWarnings
applyFormattingOptions (options)
String options
appendMergeUpdate (update, builder, indent)
MergeUpdate update
StringBuilder builder
int indent
@SuppressWarnings
appendMergeInsert (insert, builder, indent, i)
MergeInsert insert
StringBuilder builder
int indent
int i
appendSelectItemList (selectItems, builder, subIndent, i, bl, indent)
List selectItems
StringBuilder builder
int subIndent
int i
BreakLine bl
int indent
appendColumnSelectItemList (selectItems, builder, subIndent, i, bl, indent)
List selectItems
StringBuilder builder
int subIndent
int i
BreakLine bl
int indent