Class Conditional
java.lang.Object
com.github.tadukoo.database.mysql.syntax.conditional.Conditional
Conditional represents a (potentially complex) conditional in MySQL
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The Building part of building aConditional
static class
Conditional Builder is used to build aConditional
.static interface
The First Condition part of building aConditional
static interface
TheOperator
part of building aConditional
static interface
TheOperator
or building part of building aConditional
static interface
The Second Condition part of building aConditional
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Conditional
The firstConditional
involved (it may be null if aConditionalStatement
is used instead)private final ConditionalStatement
The firstConditionalStatement
involved (it may be null if aConditional
is used instead)private final SQLConjunctiveOperator
Theoperator
for the conditional (it may be null if we have just one condition)private final Conditional
The secondConditional
involved (it may be null if either aConditionalStatement
is used instead or if there's only one condition)private final ConditionalStatement
The secondConditionalStatement
involved (it may be null if either aConditional
is used instead or if there's only one condition) -
Constructor Summary
ModifierConstructorDescriptionprivate
Conditional
(Conditional firstCond, ConditionalStatement firstCondStmt, SQLConjunctiveOperator operator, Conditional secondCond, ConditionalStatement secondCondStmt) Constructs a new Conditional using the given parameters -
Method Summary
-
Field Details
-
firstCond
The firstConditional
involved (it may be null if aConditionalStatement
is used instead) -
firstCondStmt
The firstConditionalStatement
involved (it may be null if aConditional
is used instead) -
operator
Theoperator
for the conditional (it may be null if we have just one condition) -
secondCond
The secondConditional
involved (it may be null if either aConditionalStatement
is used instead or if there's only one condition) -
secondCondStmt
The secondConditionalStatement
involved (it may be null if either aConditional
is used instead or if there's only one condition)
-
-
Constructor Details
-
Conditional
private Conditional(Conditional firstCond, ConditionalStatement firstCondStmt, SQLConjunctiveOperator operator, Conditional secondCond, ConditionalStatement secondCondStmt) Constructs a new Conditional using the given parameters- Parameters:
firstCond
- The firstConditional
involvedfirstCondStmt
- The firstConditionalStatement
involvedoperator
- Theoperator
for the conditionalsecondCond
- The secondConditional
involvedsecondCondStmt
- The secondConditionalStatement
involved
-
-
Method Details
-
builder
- Returns:
- A new
builder
to use to build aConditional
-
getFirstCond
- Returns:
- The first
Conditional
involved (it may be null if aConditionalStatement
is used instead)
-
getFirstCondStmt
- Returns:
- The first
ConditionalStatement
involved (it may be null if aConditional
is used instead)
-
getOperator
- Returns:
- The
operator
for the conditional (it may be null if we have just one condition)
-
getSecondCond
- Returns:
- The second
Conditional
involved (it may be null if either aConditionalStatement
is used instead or if there's only one condition)
-
getSecondCondStmt
- Returns:
- The second
ConditionalStatement
involved (it may be null if either aConditional
is used instead or if there's only one condition)
-
toString
-