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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe building part of building aConditionalStatementstatic interfaceTheColumnpart of building aConditionalStatementstatic classA builder to create aConditionalStatement.static interfaceTheOperatorpart of building aConditionalStatementstatic interfaceThe Value part of building aConditionalStatement - 
Field Summary
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConditionalStatement(boolean negated, ColumnRef column, SQLOperator operator, Object value) Constructs a new conditional statement with the given parameters - 
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionalStatement.Columnbuilder()getValue()booleantoString() 
- 
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 
builderto 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
 
 -