Class SQLInsertStatement
java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLInsertStatement
SQLInsertStatement represents a MySQL Insert Statement
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The Building part of building aSQLInsertStatement
static interface
TheColumns
and Values part of building aSQLInsertStatement
static class
A builder class used to build aSQLInsertStatement
.static interface
TheTable
part of building aSQLInsertStatement
-
Field Summary
Modifier and TypeFieldDescriptionThecolumns
to insert intoprivate final SQLSelectStatement
Theselect statement
to use for values to insertprivate final TableRef
Thetable
to insert intoThe values to insert -
Constructor Summary
ModifierConstructorDescriptionprivate
SQLInsertStatement
(TableRef table, List<ColumnRef> columns, List<Object> values, SQLSelectStatement selectStmt) Constructs a new SQLInsertStatement using the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLInsertStatement.Table
builder()
getTable()
toString()
-
Field Details
-
table
Thetable
to insert into -
columns
Thecolumns
to insert into -
values
The values to insert -
selectStmt
Theselect statement
to use for values to insert
-
-
Constructor Details
-
SQLInsertStatement
private SQLInsertStatement(TableRef table, List<ColumnRef> columns, List<Object> values, SQLSelectStatement selectStmt) Constructs a new SQLInsertStatement using the given parameters- Parameters:
table
- Thetable
to insert intocolumns
- Thecolumns
to insert intovalues
- The values to insertselectStmt
- Theselect statement
to use for values to insert
-
-
Method Details
-
builder
- Returns:
- A
builder
to use to make aSQLInsertStatement
-
getTable
- Returns:
- The
table
to insert into
-
getColumns
- Returns:
- The
columns
to insert into
-
getValues
- Returns:
- The values to insert
-
getSelectStmt
- Returns:
- The
select statement
to use for values to insert
-
toString
-