Package com.jk.data.dynamic.query
Class ObjectComponent
java.lang.Object
com.jk.data.dynamic.query.ObjectComponent
- All Implemented Interfaces:
QueryComponent
This class represents a query component that encapsulates an object for
inclusion in a query.
It implements the QueryComponent
interface.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionObjectComponent
(Object object) This method constructs a newObjectComponent
with the provided object. -
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
-
ObjectComponent
This method constructs a newObjectComponent
with the provided object.- Parameters:
object
- Specifies the object to be included in the query.
-
-
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.
-