Interface SQLFilterClause<E extends EntityType>
- All Known Implementing Classes:
FilterClause
operation in where clause will be handled in this interface
- Author:
- alireza_bayat created on 10/27/21
-
Method Summary
Modifier and TypeMethodDescriptionand()to append `and` key word in where clauseto append `and` key word and let some filter to be run in parenthesescreateInstance(E e) create instanceClassof given entity to be used in filter clausescustomClause(String customClause) any customized filter that is not supported by mainSQLFilterClausecan be specifies by this functionequal operand in standard query language main purpose is to set equality operand between given field and filterPhraseequal operand in standard query language main purpose is to set equality operand between given field and filterPhraseexists operand in standard languageIn operand in standard languageIn operand in standard languagelike operand in standard query language to generate like phrase in between given fieldsnot()to append `not` key word in where clauseto append `not` key word and let some filter to be run in parenthesesequal operand in standard query language main purpose is to set equality operand between given field and filterPhrasenot equal operand in standard query language main purpose is to set not equality operand between given field and filterPhrasenot exists operand in standard languagenotIn operand in standard languagenotIn operand in standard languageor()to append `or` key word in where clauseto append `or` key word and let some filter to be run in parentheses
-
Method Details
-
createInstance
create instance
Classof given entity to be used in filter clausesprobably not needed in second approach
- Parameters:
e- passed entity object- Returns:
- SQLFilterClause
object
-
equal
equal operand in standard query language main purpose is to set equality operand between given field and filterPhrase
- Parameters:
field- field name which must be present asColumn.name()in entity classfilterPhrase- filtered value in field- Returns:
- SQLFilterClause
object
-
equal
equal operand in standard query language main purpose is to set equality operand between given field and filterPhrase
- Parameters:
selection- field name which must be present asColumn.name()in entity class stored inSelection.fieldNamefilterPhrase- filtered value in field- Returns:
- SQLFilterClause
object
-
notEqual
not equal operand in standard query language main purpose is to set not equality operand between given field and filterPhrase
- Parameters:
field- field name which must be present asColumn.name()in entity classfilterPhrase- filtered value in field- Returns:
- SQLFilterClause
object
-
notEqual
equal operand in standard query language main purpose is to set equality operand between given field and filterPhrase
- Parameters:
selection- field name which must be present asColumn.name()in entity class stored inSelection.fieldNamefilterPhrase- filtered value in field- Returns:
- SQLFilterClause
object
-
and
SQLFilterClause<E> and()to append `and` key word in where clause -
and
to append `and` key word and let some filter to be run in parentheses -
or
SQLFilterClause<E> or()to append `or` key word in where clause -
or
to append `or` key word and let some filter to be run in parentheses -
not
SQLFilterClause<E> not()to append `not` key word in where clause -
not
to append `not` key word and let some filter to be run in parentheses -
like
like operand in standard query language to generate like phrase in between given fields
- Parameters:
field- field name which must be present asColumn.name()matchString- filtered value in field- Returns:
- SQLFilterClause
object
-
between
-
in
In operand in standard language
- Parameters:
field- field name which must be present asColumn.name()in entity classitems- varargs of all the objects that will appear in final clause- Returns:
- SQLFilterClause
object
-
in
In operand in standard language
- Parameters:
field- field name which must be present asColumn.name()in entity classcustomQuery- custom objects that will appear in final clause- Returns:
- SQLFilterClause
object
-
notIn
notIn operand in standard language
- Parameters:
field- field name which must be present asColumn.name()in entity classitems- varargs of all the objects that will appear in final clause- Returns:
- SQLFilterClause
object
-
notIn
notIn operand in standard language
- Parameters:
field- field name which must be present asColumn.name()in entity classcustomQuery- custom objects that will appear in final clause- Returns:
- SQLFilterClause
object
-
exists
exists operand in standard language
- Parameters:
customQuery- exact query will appear in final query- Returns:
- SQLFilterClause
object
-
notExists
not exists operand in standard language
- Parameters:
customQuery- exact query will be appeared in final query- Returns:
- SQLFilterClause
object
-
innerSelect
SQLFilterClause<E> innerSelect() -
customClause
any customized filter that is not supported by main
SQLFilterClausecan be specifies by this function- Parameters:
customClause- any customized filter clause- Returns:
- SQLFilterClause
object
-