Package com.ptsmods.mysqlw.query
Class QueryCondition
java.lang.Object
com.ptsmods.mysqlw.query.QueryCondition
- Direct Known Subclasses:
QueryConditions
A condition a query must meet to affect or return rows.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryConditions
static QueryConditions
static QueryConditions
func
(QueryFunction function) static QueryConditions
static QueryConditions
greaterEqual
(String key, Object value) static QueryConditions
static QueryConditions
static QueryConditions
static QueryConditions
static QueryConditions
static QueryConditions
static QueryConditions
abstract String
toString()
static QueryConditions
static QueryConditions
varGreater
(String var1, String var2) static QueryConditions
varGreaterEqual
(String var1, String var2) static QueryConditions
static QueryConditions
varLessEqual
(String var1, String var2) static QueryConditions
varNotEquals
(String var1, String var2)
-
Constructor Details
-
QueryCondition
public QueryCondition()
-
-
Method Details
-
func
- Parameters:
function
- The function to check- Returns:
- A QueryCondition that checks the given function
-
equals
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition comparing a column against a value
-
varEquals
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition comparing two variables
-
notEquals
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column does not equal a value
-
varNotEquals
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition that checks if two variables are not equal
-
greater
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column is greater than the given value
-
varGreater
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition that checks if var1 is greater than var2
-
greaterEqual
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column is greater than or equal to the given value
-
varGreaterEqual
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition that checks if var1 is greater than or equal to var2
-
less
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column is less than the given value
-
varLess
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition that checks if var1 is less than var2
-
lessEqual
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column is less than or equal to the given value
-
varLessEqual
- Parameters:
var1
- The first variablevar2
- The second variable- Returns:
- A QueryCondition that checks if var1 is less than or equal to var2
-
like
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column is like the given value
-
match
- Parameters:
key
- The name of the column to comparevalue
- The value to compare to- Returns:
- A QueryCondition that checks if a column matches the given value
-
in
- Parameters:
key
- The name of the column to compareobjects
- The objects to check- Returns:
- A QueryCondition that checks if a column is in the given list
-
notIn
- Parameters:
key
- The name of the column to compareobjects
- The objects to check- Returns:
- A QueryCondition that checks if a column is not in the given list
-
bool
- Parameters:
arg
- The name of the argument to check- Returns:
- A QueryCondition that checks the value of a column or variable
-
toString
-