Package com.jk.data.dynamic.query
Interface QueryComponent
- All Known Subinterfaces:
Condition,Join,ReturnValue
- All Known Implementing Classes:
FieldCondition,FieldName,Keyword,ObjectComponent,Operator,StringCondition,StringReturnValue,TableName
public interface QueryComponent
This interface defines the common contract for query components used in
constructing queries.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisInline()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.
-
Method Details
-
isInline
boolean isInline()This method determines whether the query component should be rendered in-line in the query structure (true) or not (false).- Returns:
- true, if the component is in-line, false otherwise.
-
toQueryElement
Object toQueryElement()This method converts the query component into a query element that can be included in the query structure.- Returns:
- the query element, which can be a string or any appropriate object representation.
-