public static class StatementSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StatementSummary |
build() |
StatementSummary.Builder |
copy(StatementSummary model) |
StatementSummary.Builder |
indexName(String indexName)
The index name from the SQL statement, if present.
|
StatementSummary.Builder |
isIfExists(Boolean isIfExists)
True if the statement includes “IF EXISTS.”
|
StatementSummary.Builder |
isIfNotExists(Boolean isIfNotExists)
True if the statement includes “IF NOT EXISTS.”
|
StatementSummary.Builder |
operation(StatementSummary.Operation operation)
The operation represented in the statement, e.g.
|
StatementSummary.Builder |
syntaxError(String syntaxError)
If present, indicates a syntax error in the statement.
|
StatementSummary.Builder |
tableName(String tableName)
The table name from the SQL statement.
|
public StatementSummary.Builder operation(StatementSummary.Operation operation)
The operation represented in the statement, e.g. CREATE_TABLE.
operation
- the value to setpublic StatementSummary.Builder tableName(String tableName)
The table name from the SQL statement.
tableName
- the value to setpublic StatementSummary.Builder indexName(String indexName)
The index name from the SQL statement, if present.
indexName
- the value to setpublic StatementSummary.Builder isIfExists(Boolean isIfExists)
True if the statement includes “IF EXISTS.”
isIfExists
- the value to setpublic StatementSummary.Builder isIfNotExists(Boolean isIfNotExists)
True if the statement includes “IF NOT EXISTS.”
isIfNotExists
- the value to setpublic StatementSummary.Builder syntaxError(String syntaxError)
If present, indicates a syntax error in the statement.
syntaxError
- the value to setpublic StatementSummary build()
public StatementSummary.Builder copy(StatementSummary model)
Copyright © 2016–2024. All rights reserved.