Class ColumnPosition
java.lang.Object
io.github.torand.fastersql.projection.ColumnPosition
- All Implemented Interfaces:
OrderExpression
,Sql
Represents an enumeration of a projection, that is, a 1-based number referencing a single projection element in a SELECT clause.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the column aliases referenced by this fragment.Gets the columns referenced by this fragment.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.torand.fastersql.order.OrderExpression
asc, ascIf, desc
-
Constructor Details
-
ColumnPosition
public ColumnPosition(int position) Creates a column position.- Parameters:
position
- the 1-based position.
-
-
Method Details
-
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:Sql
Gets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefs
in interfaceSql
- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:Sql
Gets the column aliases referenced by this fragment. For validation purposes.
-