Class SQLUpdateStatement
java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLUpdateStatement
SQLUpdateStatement represents an Update statement from MySQL
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
TheSet Statements
part of building aSQLUpdateStatement
static class
A builder to use to build aSQLUpdateStatement
.static interface
TheTable
part of building aSQLUpdateStatement
static interface
TheWhere Statement
and building part of building aSQLUpdateStatement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<EqualsStatement>
Thestatements
to set valuesprivate final TableRef
Thetable
to updateprivate final Conditional
Thewhere statement
-
Constructor Summary
ModifierConstructorDescriptionprivate
SQLUpdateStatement
(TableRef table, List<EqualsStatement> setStatements, Conditional whereStatement) Constructs a SQLUpdateStatement using the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLUpdateStatement.Table
builder()
getTable()
toString()
-
Field Details
-
table
Thetable
to update -
setStatements
Thestatements
to set values -
whereStatement
Thewhere statement
-
-
Constructor Details
-
SQLUpdateStatement
private SQLUpdateStatement(TableRef table, List<EqualsStatement> setStatements, Conditional whereStatement) Constructs a SQLUpdateStatement using the given parameters- Parameters:
table
- Thetable
to updatesetStatements
- Thestatements
to set valueswhereStatement
- Thewhere statement
-
-
Method Details
-
builder
- Returns:
- A new
builder
to use to build aSQLUpdateStatement
-
getTable
- Returns:
- The
table
to update
-
getSetStatements
- Returns:
- The
statements
to set values
-
getWhereStatement
- Returns:
- The
where statement
-
toString
-