Package com.appiancorp.common.query
Interface Projection<T extends Column>
- Type Parameters:
T
- Type of Column it encapsulates.
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
Aggregation
,Selection
Marker interface for Selection
and Aggregation
.
This represents the selected columns in a Query
object.
The reason why this class exist is to encapsulate the ListColumn
and AggregationColumn
when they are mutually exclusive and is not a valid configuration.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a newProjection
containing the same data as thisProjection
.Returns the list of projected columns
-
Method Details
-
getColumns
Returns the list of projected columns- Returns:
- the list of projected columns
-
clone
Projection<T> clone()Returns a newProjection
containing the same data as thisProjection
. This is not a deep clone, it just creates new lists to allow data manipulation.- Returns:
- new
Projection
containing the same data as thisProjection
copied by value.
-