Class Projections
java.lang.Object
io.github.torand.fastersql.projection.Projections
Provides factory methods for projections.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnPosition
colPos
(int position) Creates a numeric reference to a projected column in a query result.static ExpressionSubquery
subquery
(SelectStatement query) Creates a subquery expression to be used as a projection.
-
Method Details
-
colPos
Creates a numeric reference to a projected column in a query result.- Parameters:
position
- the position, 1-based- Returns:
- the column position.
-
subquery
Creates a subquery expression to be used as a projection.- Parameters:
query
- the query.- Returns:
- the subquery expression.
-