Package nz.co.gregs.dbvolution.columns
Interface ColumnProvider
-
- All Superinterfaces:
DBExpression
,HasSQLString
- All Known Implementing Classes:
BooleanArrayColumn
,BooleanColumn
,ByteArrayColumn
,DateColumn
,DateRepeatColumn
,DurationColumn
,InstantColumn
,IntegerColumn
,JavaObjectColumn
,LargeBinaryColumn
,LargeObjectColumn
,LargeTextColumn
,Line2DColumn
,LineSegment2DColumn
,LocalDateColumn
,LocalDateTimeColumn
,MultiPoint2DColumn
,NumberColumn
,Point2DColumn
,Polygon2DColumn
,QueryColumn
,StringColumn
,UntypedColumn
,UUIDColumn
public interface ColumnProvider extends DBExpression
Interface to indicate that this object can provide a column.Support DBvolution at Patreon
- Author:
- Gregory Graham
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SortProvider
ascending()
SortProvider
descending()
AbstractColumn
getColumn()
Returns the AbstractColumn from this ColumnProvider.SortProvider
getSortProvider()
Provides the sorting for this column as defined by the methodsQueryableDatatype.setSortOrder(java.lang.Boolean)
,QueryableDatatype.setSortOrderAscending()
, andQueryableDatatype.setSortOrderDescending()
on the QDT.void
setUseTableAlias(boolean useTableAlias)
Indicates whether the ColumnProvider should use the table alias during query creation.-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.DBExpression
copy, createSQLForFromClause, createSQLForGroupByClause, getQueryableDatatypeForExpressionValue, getTablesInvolved, isAggregator, isComplexExpression, isPurelyFunctional, isWindowingFunction
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.HasSQLString
toSQLString
-
-
-
-
Method Detail
-
getColumn
AbstractColumn getColumn()
Returns the AbstractColumn from this ColumnProvider.Support DBvolution at Patreon
- Returns:
- the column that this provider supplies.
-
setUseTableAlias
void setUseTableAlias(boolean useTableAlias)
Indicates whether the ColumnProvider should use the table alias during query creation.the standard implementation is
this.column.setUseTableAlias(useTableAlias);
and passes the boolean along to the underlying AbstractColumn- Parameters:
useTableAlias
- true or false
-
getSortProvider
SortProvider getSortProvider()
Provides the sorting for this column as defined by the methodsQueryableDatatype.setSortOrder(java.lang.Boolean)
,QueryableDatatype.setSortOrderAscending()
, andQueryableDatatype.setSortOrderDescending()
on the QDT.At the time of querying the sort order defined on the original QDT field provided is add to the query, with ASCENDING being used as the default ordering.
To be certain of the ordering use the
AnyExpression.ascending()
andAnyExpression.descending()
methods.- Returns:
- a SortProvider configured to use the sorting defined on original QDT or ASCENDING.
-
ascending
SortProvider ascending()
-
descending
SortProvider descending()
-
-