public final class StatementFactory extends Object
StatementFactory implements an factory for SQL statements.| Modifier and Type | Method and Description |
|---|---|
CreateSchema |
createSchema(String schemaName)
Create a
CreateSchema statement. |
CreateTable |
createTable(String tableName)
Create a
CreateTable statement. |
DropSchema |
dropSchema(String schemaName)
Create a
DropSchema statement. |
DropTable |
dropTable(String tableName)
Create a
DropTable statement. |
static StatementFactory |
getInstance()
Get an instance of a
StatementFactory. |
Insert |
insertInto(String tableName)
Create an
Insert statement. |
Merge |
mergeInto(String destinationTable)
Create a
Merge statement. |
Merge |
mergeInto(String destinationTable,
String as)
Create a
Merge statement. |
Select |
select()
Create a
Select statement. |
public static StatementFactory getInstance()
StatementFactory.public Select select()
Select statement.Select statementpublic Insert insertInto(String tableName)
Insert statement.tableName - name of the table into which to insert the dataInsert statementpublic Merge mergeInto(String destinationTable)
Merge statement.destinationTable - table into which data is mergedMerge statementpublic Merge mergeInto(String destinationTable, String as)
Merge statement.destinationTable - table into which data is mergedas - table aliasMerge statementpublic CreateTable createTable(String tableName)
CreateTable statement.tableName - name of the table to createCreateTable statementpublic CreateSchema createSchema(String schemaName)
CreateSchema statement.schemaName - name of the schema to createCreateSchema statementpublic DropTable dropTable(String tableName)
DropTable statement.tableName - name of the table to dropDropTable statementpublic DropSchema dropSchema(String schemaName)
DropSchema statement.schemaName - name of the schema to dropDropSchema statementCopyright © 2018–2021. All rights reserved.