Class FormatterFactory
Object
gudusoft.gsqlparser.pp.stmtformatter.FormatterFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacethe callback interface to achieve the formatter builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidclearAllObject(String sessionId) static AllStmtsFormattercreateAllStmtsFormatter(GFmtOpt option) static AlterTableStmtFormatterstatic CompactModeStmtFormatterstatic CreateTableStmtFormatterstatic CreateViewStmtFormatterstatic DeclareStmtFormatterstatic DeleteStmtFormatterstatic ExecuteStmtFormatterstatic <E extends AbstractStmtFormatter>
EcreateFormatter(GFmtOpt opt, Class<E> clazz, FormatterFactory.IFormatterBuilderCreator<E> creater) create the formatterstatic GoStmtFormatterstatic IfStmtFormatterstatic InsertStmtFormatterstatic PlsqlIfStmtFormatterstatic PlsqlStmtFormatterstatic ReturnStmtFormatterstatic SelectStmtFormattercreate select statment formatterstatic SetStmtFormatterstatic UpdateStmtFormatterstatic OutputConfigstatic booleanstatic booleanstatic Stringpp(TGSqlParser parser, GFmtOpt option) static voidprocessBlockStmt(GFmtOpt opt, TMssqlBlock stmt, TSourceToken ifToken) static voidprocessStatement(GFmtOpt option, TCustomSqlStatement sql) static voidsetOutputConfig(OutputConfig outputConfig)
-
Constructor Details
-
FormatterFactory
public FormatterFactory()
-
-
Method Details
-
createSelectStmtFormatter
create select statment formatter- Parameters:
opt- options- Returns:
- instance
-
createInsertStmtFormatter
-
createDeleteStmtFormatter
-
createUpdateStmtFormatter
-
createCreateTableStmtFormatter
-
createDeclareStmtFormatter
-
createExecuteStmtFormatter
-
createSetStmtFormatter
-
createIfStmtFormatter
-
createPlsqlIfStmtFormatter
-
createPlsqlStmtFormatter
-
createGoStmtFormatter
-
createCompactModeStmtFormatter
-
createReturnStmtFormatter
-
createCreateViewStmtFormatter
-
createAlterTableStatement
-
createFormatter
public static <E extends AbstractStmtFormatter> E createFormatter(GFmtOpt opt, Class<E> clazz, FormatterFactory.IFormatterBuilderCreator<E> creater) create the formatter- Type Parameters:
E-- Parameters:
opt-clazz-creater-- Returns:
-
processStatement
-
isNotNeedFormat
-
isNotNeedFormat
-
processBlockStmt
-
pp
-
getOutputConfig
-
setOutputConfig
-
createAllStmtsFormatter
-
clearAllObject
-
clear
-