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 |
Select |
select()
Create a
Select statement |
public static StatementFactory getInstance()
StatementFactorypublic Select select()
Select statementSelect statementpublic Insert insertInto(String tableName)
Insert statementtableName - name of the table into which to insert the dataInsert statementpublic CreateTable createTable(String tableName)
CreateTable statementtableName - name of the table to createCreateTable statementpublic CreateSchema createSchema(String schemaName)
CreateSchema statementschemaName - name of the schema to createCreateSchema statementpublic DropTable dropTable(String tableName)
DropTable statementtableName - name of the table to dropDropTable statementpublic DropSchema dropSchema(String schemaName)
DropSchema statementschemaName - name of the schema to dropDropSchema statementCopyright © 2018–2019. All rights reserved.