Class SQLWhereQuery<T>
java.lang.Object
ece.ing3.java.projet.database.sql.queries.SQLWhereQuery<T>
- Type Parameters:
T- SQL helper class
- All Implemented Interfaces:
SQLRequest
SQL helper for queries supporting Where clause.
Must be used as a base class for a feature-complete SQL helper.
- Author:
- Virgile, Nicolas, Louis-Félix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChain a new Where clause using the boolean AND.andWhere(String column, String comparator, SQLRequest subquery) Chain a Where clause using the boolean AND, using the provided values and subquery.Chain a Where clause using the boolean AND, using the provided values.Gets all the request's parametersChain a Where clause using the boolean OR.orWhere(String column, String comparator, SQLRequest subquery) Chain a Where clause using the boolean OR, using the provided values and subquery.Chain a Where clause using the boolean OR, using the provided values.Init a new where clause.where(String column, String comparator, SQLRequest subquery) Init a new Where clause using the provided values and subquery.Init a new Where clause using the provided values.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ece.ing3.java.projet.database.sql.queries.SQLRequest
getModelClass, toString
-
Constructor Details
-
SQLWhereQuery
public SQLWhereQuery()
-
-
Method Details
-
where
Init a new where clause.- Parameters:
condition- Where clause to use- Returns:
- This SQL select helper
-
andWhere
Chain a new Where clause using the boolean AND.- Parameters:
condition- Where clause to chain- Returns:
- This SQL select helper
-
orWhere
Chain a Where clause using the boolean OR.- Parameters:
condition- Where clause to chain- Returns:
- This SQL select helper
-
where
Init a new Where clause using the provided values.- Parameters:
column- Column to targetcomparator- Comparator to usevalue- Comparison value- Returns:
- This SQL select helper
-
andWhere
Chain a Where clause using the boolean AND, using the provided values.- Parameters:
column- Column to targetcomparator- Comparator to usevalue- Comparison value- Returns:
- This SQL select helper
-
orWhere
Chain a Where clause using the boolean OR, using the provided values.- Parameters:
column- Column to targetcomparator- Comparator to usevalue- Comparison value- Returns:
- This SQL select helper
-
where
Init a new Where clause using the provided values and subquery.- Parameters:
column- Column to targetcomparator- Comparator to usesubquery- Comparison value- Returns:
- This SQL select helper
-
andWhere
Chain a Where clause using the boolean AND, using the provided values and subquery.- Parameters:
column- Column to targetcomparator- Comparator to usesubquery- Comparison value- Returns:
- This SQL select helper
-
orWhere
Chain a Where clause using the boolean OR, using the provided values and subquery.- Parameters:
column- Column to targetcomparator- Comparator to usesubquery- Comparison value- Returns:
- This SQL select helper
-
getParameters
Description copied from interface:SQLRequestGets all the request's parameters- Specified by:
getParametersin interfaceSQLRequest- Returns:
- Request parameters
-