| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final FormatStyle | BASIC
Formatting for SELECT, INSERT, UPDATE and DELETE statements |
| public static final FormatStyle | DDL
Formatting for DDL (CREATE, ALTER, DROP, etc) statements |
| private final Formatter | |
| public static final FormatStyle | HIGHLIGHT
Syntax highlighting via ANSI escape codes |
| private final String | name
Hides java. |
| public static final FormatStyle | NONE
No formatting |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Formatter | |
| public String | |
| public static FormatStyle | |
| public static FormatStyle[] |
| BASIC | back to summary |
|---|---|
| public static final FormatStyle BASIC Formatting for SELECT, INSERT, UPDATE and DELETE statements | |
| DDL | back to summary |
|---|---|
| public static final FormatStyle DDL Formatting for DDL (CREATE, ALTER, DROP, etc) statements | |
| formatter | back to summary |
|---|---|
| private final Formatter formatter | |
| HIGHLIGHT | back to summary |
|---|---|
| public static final FormatStyle HIGHLIGHT Syntax highlighting via ANSI escape codes | |
| name | back to summary |
|---|---|
| private final String name Hides java. | |
| NONE | back to summary |
|---|---|
| public static final FormatStyle NONE No formatting | |
| FormatStyle | back to summary |
|---|---|
| private FormatStyle(String name, Formatter formatter) | |
| getFormatter | back to summary |
|---|---|
| public Formatter getFormatter() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| valueOf | back to summary |
|---|---|
| public static FormatStyle valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FormatStyle[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FormatStyle. | INSTANCE
Singleton access |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | format(String
The original SQL string source)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final FormatStyle. Singleton access | |
| NoFormatImpl | back to summary |
|---|---|
| private NoFormatImpl() | |
| format | back to summary |
|---|---|
| public String format(String source) Implements org. Doc from org. Format the source SQL string. | |