Package com.jk.data.dynamic.query
Class FieldName
java.lang.Object
com.jk.data.dynamic.query.FieldName
- All Implemented Interfaces:
QueryComponent
This class represents a query component that represents a field name,
typically used in queries and expressions.
It implements the QueryComponent
interface.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
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
-
FieldName
This method constructs a newFieldName
with the provided field name.- Parameters:
name
- Specifies the name of the field.
-
-
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.
-