public class Polygon2DColumn extends Polygon2DExpression implements ColumnProvider
Support DBvolution at Patreon
EqualExpression.ModeSimpleExpression, EqualExpression.ModeStrictExpression| Constructor and Description |
|---|
Polygon2DColumn(RowDefinition row,
DBPolygon2D field)
Creates a portable reference to the column represented by the field of the
row.
|
Polygon2DColumn(RowDefinition row,
com.vividsolutions.jts.geom.Polygon field) |
| Modifier and Type | Method and Description |
|---|---|
AbstractColumn |
getColumn()
Returns the AbstractColumn from this ColumnProvider.
|
Set<DBRow> |
getTablesInvolved()
Returns a Set of the DBRow instances involved in this expression.
|
boolean |
isAggregator()
Returns TRUE if this expression is an Aggregator like SUM() or LEAST().
|
boolean |
isPurelyFunctional()
Indicates whether or not the expression includes table columns.
|
void |
setUseTableAlias(boolean useTableAlias)
Indicates whether the ColumnProvider should use the table alias during
query creation.
|
String |
toSQLString(DBDefinition db)
Produces the snippet provided by this class.
|
area, asExpressionColumn, boundingBox, contains, contains, contains, contains, copy, doesNotIntersect, doesNotIntersect, expression, expression, expression, expression, expression, expression, expression, exteriorRing, getIncludesNull, getQueryableDatatypeForExpressionValue, hasMagnitude, intersects, intersects, is, is, isNot, isNot, isNullSafetyTerminator, magnitude, maxX, maxY, measurableDimensions, minX, minY, modeSimple, nullExpression, overlaps, overlaps, polygon2DResult, spatialDimensions, stringResult, touches, touches, toWKTFormat, unitSquare, value, value, value, value, value, value, within, withincount, countAll, countIf, is, isNot, modeStrictcreateSQLForFromClause, getInnerResult, isComplexExpression, nullBoolean, nullDate, nullDateRepeat, nullInteger, nullLine2D, nullLineSegment2D, nullMultiPoint2D, nullNumber, nullPoint2D, nullPolygon2D, nullString, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSQLForFromClause, isComplexExpressionpublic Polygon2DColumn(RowDefinition row, DBPolygon2D field)
row - the table defining object that contains the fieldfield - the field that defines the columnpublic Polygon2DColumn(RowDefinition row, com.vividsolutions.jts.geom.Polygon field)
public AbstractColumn getColumn()
ColumnProviderSupport DBvolution at Patreon
getColumn in interface ColumnProviderpublic void setUseTableAlias(boolean useTableAlias)
ColumnProvider
the standard implementation is
this.column.setUseTableAlias(useTableAlias); and passes the boolean
along to the underlying AbstractColumn
setUseTableAlias in interface ColumnProvideruseTableAlias - true or falsepublic String toSQLString(DBDefinition db)
DBExpressionThis is only used internally.
If you are extending DBvolution and adding a new function this is the place to format the information for use in SQL. A DBDefinition instance is provided to supply context and so your SQL can used on multiple database engines.
toSQLString in interface DBExpressiontoSQLString in class AnyExpression<com.vividsolutions.jts.geom.Polygon,Polygon2DResult,DBPolygon2D>db - the target database
Support DBvolution at Patreon
public Set<DBRow> getTablesInvolved()
DBExpressionUsed by QueryGraph to plot the connections between tables and avoid cartesian joins.
Support DBvolution at Patreon
getTablesInvolved in interface DBExpressiongetTablesInvolved in class AnyExpression<com.vividsolutions.jts.geom.Polygon,Polygon2DResult,DBPolygon2D>public boolean isPurelyFunctional()
DBExpressionPurely functional expressions use only in-built functions or literal values to produce results and do not require data from tables.
Some databases, notably MS SQLServer, can not group purely functional expressions.
Support DBvolution at Patreon
isPurelyFunctional in interface DBExpressionisPurelyFunctional in class AnyExpression<com.vividsolutions.jts.geom.Polygon,Polygon2DResult,DBPolygon2D>public boolean isAggregator()
DBExpressionSubclasses must implement this method returning TRUE if the expression will combine the results of several rows to produce a result. If the expression relies on subexpressions, then the isAggregator method must return TRUE if the subexpressions include an aggregator.
Aggregators collect several rows together to produce a single result. Examples are MAX, MIN, and AVERAGE.
They are only appropriate in the SELECT clause and generally require the GROUP BY clause to be useful.
Aggregators are used with DBReport. Aggregator expressions are
included in the SELECT clause but excluded from the GROUP BY clause.
Support DBvolution at Patreon
isAggregator in interface DBExpressionisAggregator in class AnyExpression<com.vividsolutions.jts.geom.Polygon,Polygon2DResult,DBPolygon2D>Copyright © 2018. All Rights Reserved.