Class ConditionalStatement
java.lang.Object
com.github.tadukoo.database.mysql.syntax.conditional.ConditionalStatement
Conditional Statement represents a single conditional statement in MySQL (it may be part of a greater
Conditional
)- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The building part of building aConditionalStatement
static interface
TheColumn
part of building aConditionalStatement
static class
A builder to create aConditionalStatement
.static interface
TheOperator
part of building aConditionalStatement
static interface
The Value part of building aConditionalStatement
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
ConditionalStatement
(boolean negated, ColumnRef column, SQLOperator operator, Object value) Constructs a new conditional statement with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionalStatement.Column
builder()
getValue()
boolean
toString()
-
Field Details
-
negated
private final boolean negatedWhether this statement is negated or not -
column
The column of this statement -
operator
The operator of this statement -
value
The value of this statement
-
-
Constructor Details
-
ConditionalStatement
Constructs a new conditional statement with the given parameters- Parameters:
negated
- Whether the statement is negated or notcolumn
- The column of the statementoperator
- The operator of the statementvalue
- The value of the statement
-
-
Method Details
-
builder
- Returns:
- A new
builder
to build aConditionalStatement
-
isNegated
public boolean isNegated()- Returns:
- Whether this statement is negated or not
-
getColumn
- Returns:
- The column of this statement
-
getOperator
- Returns:
- The operator of this statement
-
getValue
- Returns:
- The value of this statement
-
toString
-