Package com.jk.data.dynamic.query
Class StringCondition
java.lang.Object
com.jk.data.dynamic.query.StringCondition
- All Implemented Interfaces:
Condition
,QueryComponent
This class represents a condition in a query expressed as a string.
It implements the Condition
interface.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionStringCondition
(String condition) This method constructs a newStringCondition
with the provided value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInline()
This method determines whether the query component should be rendered in-line in the query structure (true) or not (false).This method converts the query component into a query element that can be included in the query structure.
-
Constructor Details
-
StringCondition
This method constructs a newStringCondition
with the provided value.- Parameters:
condition
- Specifies the condition string.
-
-
Method Details
-
isInline
public boolean isInline()This method determines whether the query component should be rendered in-line in the query structure (true) or not (false).- Specified by:
isInline
in interfaceQueryComponent
- Returns:
- true.
-
toQueryElement
This method converts the query component into a query element that can be included in the query structure.- Specified by:
toQueryElement
in interfaceQueryComponent
- Returns:
- the query element, which can be a string or any appropriate object representation.
-