public class PostgresDBDefinition extends DBDefinition
This DBDefinition is automatically included in PostgresDB and
PostgresDBOverSSL instances, and you should not need to use it
directly.
Support DBvolution at Patreon
| Constructor and Description |
|---|
PostgresDBDefinition() |
| Modifier and Type | Method and Description |
|---|---|
String |
doAddDaysTransform(String dateValue,
String numberOfDays)
Does the required transformation to produce an SQL snippet that adds
numberOfdays days to the dateValue.
|
String |
doAddHoursTransform(String dateValue,
String numberOfHours)
Does the required transformation to produce an SQL snippet that adds
numberOfHours hours to the dateValue.
|
String |
doAddMinutesTransform(String dateValue,
String numberOfMinutes)
Does the required transformation to produce an SQL snippet that adds
numberOfMinutes minutes to the dateValue.
|
String |
doAddMonthsTransform(String dateValue,
String numberOfWeeks)
Does the required transformation to produce an SQL snippet that adds
numberOfMonths months to the dateValue.
|
String |
doAddSecondsTransform(String dateValue,
String numberOfSeconds)
Does the required transformation to produce an SQL snippet that adds
numberOfSeconds seconds to the dateValue.
|
String |
doAddWeeksTransform(String dateValue,
String numberOfWeeks)
Does the required transformation to produce an SQL snippet that adds
numberOfWeeks weeks to the dateValue.
|
String |
doAddYearsTransform(String dateValue,
String numberOfWeeks)
Does the required transformation to produce an SQL snippet that adds
numberOfYears years to the dateValue.
|
String |
doBitsValueTransform(boolean[] boolArray)
Convert the boolean array of bit values into the SQL equivalent.
|
String |
doBooleanArrayTransform(Boolean[] bools)
Transforms the array of booleans into the database format.
|
String |
doBooleanToIntegerTransform(String columnName)
Transforms a bit expression into an integer expression.
|
String |
doBooleanValueTransform(Boolean boolValue)
Transform a Java Boolean into the equivalent in an SQL snippet.
|
String |
doColumnTransformForSelect(QueryableDatatype<?> qdt,
String selectableName)
Perform necessary transformations on the stored value to make it readable
by Java.
|
String |
doCurrentDateOnlyTransform()
Creates the CURRENTDATE function for this database.
|
String |
doDayDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in days.
|
String |
doDayOfWeekTransform(String dateSQL)
Extracts the weekday from the date provided as a number from 1 to 7.
|
String |
doFindIntegerInStringTransform(String toSQLString) |
String |
doFindNumberInStringTransform(String toSQLString) |
String |
doHourDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in hours.
|
String |
doIntegerToBitTransform(String columnName)
Transforms a integer expression into an bit expression.
|
String |
doLine2DAllIntersectionPointsWithLine2DTransform(String firstGeometry,
String secondGeometry)
Generate the SQL required to find the complete set of all points of
intersection between the tow 2 lines.
|
String |
doLine2DAsTextTransform(String line2DSQL)
Provide the SQL to derive the WKT version of the Line2D.
|
String |
doLine2DEqualsTransform(String firstLineSQL,
String secondLineSQL)
Transform the 2 Line2D SQL snippets into an EQUALS comparison of the 2
|
String |
doLine2DGetBoundingBoxTransform(String toSQLString)
Create the SQL to derive the bounding box of this Line2D SQL
|
String |
doLine2DGetMaxXTransform(String toSQLString)
Generate the SQL that will return the largest X value within the Line2D
expression.
|
String |
doLine2DGetMaxYTransform(String toSQLString)
Generate the SQL that will return the largest Y value within the Line2D
expression.
|
String |
doLine2DGetMinXTransform(String toSQLString)
Generate the SQL that will return the smallest X value within the Line2D
expression.
|
String |
doLine2DGetMinYTransform(String toSQLString)
Generate the SQL that will return the smallest Y value within the Line2D
expression.
|
String |
doLine2DIntersectionPointWithLine2DTransform(String firstGeometry,
String secondGeometry)
Generate the SQL required to find the intersection point of the 2 line
segment SQL expressions.
|
String |
doLine2DIntersectsLine2DTransform(String firstGeometry,
String secondGeometry)
Generates the SQL required to find whether the 2 lines cross at any point.
|
String |
doLineSegment2DAsTextTransform(String toSQLString)
Generate the SQL required to convert the line segment SQL expression into
the WKT string format.
|
String |
doLineSegment2DEqualsTransform(String toSQLString,
String toSQLString0)
Generate the SQL required to find whether the 2 line segment SQL
expressions are equal.
|
String |
doLineSegment2DGetBoundingBoxTransform(String toSQLString)
Generate the SQL required to the rectangular boundary that fully encloses
the line segment SQL expression.
|
String |
doLineSegment2DGetMaxXTransform(String toSQLString)
Generate the SQL required to find the largest X value in the line segment
SQL expression.
|
String |
doLineSegment2DGetMaxYTransform(String toSQLString)
Generate the SQL required to find the largest Y value in the line segment
SQL expression.
|
String |
doLineSegment2DGetMinXTransform(String toSQLString)
Generate the SQL required to find the smallest X value in the line segment
SQL expression.
|
String |
doLineSegment2DGetMinYTransform(String toSQLString)
Generate the SQL required to find the smallest Y value in the line segment
SQL expression.
|
String |
doLineSegment2DIntersectionPointWithLineSegment2DTransform(String firstLineSegment,
String secondLineSegment)
Generate the SQL required to find the intersection point of the 2 line
segment SQL expressions.
|
String |
doLineSegment2DIntersectsLineSegment2DTransform(String toSQLString,
String toSQLString0)
Generates the database specific SQL for testing whether the 2 line segment
expressions ever cross.
|
String |
doLineSegment2DNotEqualsTransform(String toSQLString,
String toSQLString0)
Generate the SQL required to find whether the 2 line segment SQL
expressions are NOT equal.
|
String |
doLogBase10NumberTransform(String sql)
Return the Natural Logarithm.
|
String |
doMinuteDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in minutes.
|
String |
doMonthDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in months.
|
String |
doMultiPoint2DAsTextTransform(String first)
Provides the SQL the transform the MultiPoint2D value into a WKT value.
|
String |
doMultiPoint2DEqualsTransform(String first,
String second)
Provide the SQL to compare 2 MultiPoint2Ds using the equivalent of EQUALS.
|
String |
doMultiPoint2DGetBoundingBoxTransform(String first)
Provides the SQL the derive the bounding box containing all the points in
the MultiPoint2D value.
|
String |
doMultiPoint2DGetMaxXTransform(String toSQLString)
Provides the SQL that will derive the largest X value of all the points in
the MultiPoint2D value
|
String |
doMultiPoint2DGetMaxYTransform(String toSQLString)
Provides the SQL that will derive the largest Y value of all the points in
the MultiPoint2D value
|
String |
doMultiPoint2DGetMinXTransform(String toSQLString)
Provides the SQL that will derive the smallest X value of all the points in
the MultiPoint2D value
|
String |
doMultiPoint2DGetMinYTransform(String toSQLString)
Provides the SQL that will derive the smallest Y value of all the points in
the MultiPoint2D value
|
String |
doMultiPoint2DGetNumberOfPointsTransform(String first)
Provides the SQL the derive the number of points in the multipoint2d value.
|
String |
doMultiPoint2DGetPointAtIndexTransform(String first,
String index)
Provide the SQL to get point at the supplied index within the MultiPoint2D
|
String |
doMultiPoint2DMeasurableDimensionsTransform(String first)
Provides the SQL the derive the dimension (2 basically) of the MultiPoint2D
value.
|
String |
doMultiPoint2DToLine2DTransform(String first)
Provides the SQL the transform the MultiPoint2D value into a
Line2DResult value. |
String |
doPoint2DAsTextTransform(String point2DString)
Provide the SQL to derive the WKT version of the Point2D.
|
String |
doPoint2DEqualsTransform(String firstPoint,
String secondPoint)
Provide the SQL to compare 2 Point2Ds
|
String |
doPoint2DGetBoundingBoxTransform(String point2D)
Provide the SQL to derive the Polygon2D representing the Bounding Box of
the Point2D.
|
String |
doPoint2DGetXTransform(String point2D)
Provide the SQL to return the X coordinate of the Point2D
|
String |
doPoint2DGetYTransform(String point2D)
Provide the SQL to return the Y coordinate of the Point2D
|
String |
doPoint2DMeasurableDimensionsTransform(String point2D)
Provide the SQL to return the dimension of the Point2D
|
String |
doPolygon2DAsTextTransform(String toSQLString)
Generates the SQL to convert the polygon to the standard text version of a
polygon.
|
String |
doPolygon2DContainsPoint2DTransform(String firstGeometry,
String secondGeometry)
Generates the SQL to determine whether the first (polygon) argument
contains the second point argument.
|
String |
doPolygon2DContainsPolygon2DTransform(String firstGeometry,
String secondGeometry)
Test whether the first polygon completely contains the second polygon.
|
String |
doPolygon2DDoesNotIntersectTransform(String firstGeometry,
String secondGeometry)
Inverse of
DBDefinition.doPolygon2DIntersectsTransform(java.lang.String, java.lang.String), tests whether the 2 polygons are non-coincident. |
String |
doPolygon2DEqualsTransform(String firstGeometry,
String secondGeometry)
Compare 2 polygons with EQUALS.
|
String |
doPolygon2DGetAreaTransform(String toSQLString)
Retrieve the area of the polygon.
|
String |
doPolygon2DGetBoundingBoxTransform(String toSQLString)
Create a simple four sided bounding for the polygon.
|
String |
doPolygon2DGetExteriorRingTransform(String polygon2DSQL)
Defines the transformation require to transform an SQL Polygon2D into a
linestring representing the exterior ring of the polygon.
|
String |
doPolygon2DGetMaxXTransform(String polygon2DSQL)
Generate the SQL that will return the largest X value within the Polygon2D
expression.
|
String |
doPolygon2DGetMaxYTransform(String polygon2DSQL)
Generate the SQL that will return the largest X value within the Polygon2D
expression.
|
String |
doPolygon2DGetMinXTransform(String polygon2DSQL)
Generate the SQL that will return the smallest X value within the Polygon2D
expression.
|
String |
doPolygon2DGetMinYTransform(String polygon2DSQL)
Generate the SQL that will return the smallest Y value within the Polygon2D
expression.
|
String |
doPolygon2DIntersectionTransform(String firstGeometry,
String secondGeometry)
Creates a Polygon2D representing the intersection of the Polygon2Ds.
|
String |
doPolygon2DIntersectsTransform(String firstGeometry,
String secondGeometry)
Test whether the 2 polygons intersect.
|
String |
doPolygon2DMeasurableDimensionsTransform(String toSQLString)
Returns the dimension of the polygon.
|
String |
doPolygon2DOverlapsTransform(String firstGeometry,
String secondGeometry)
Test whether the 2 polygons intersect but not contained or within.
|
String |
doPolygon2DTouchesTransform(String firstGeometry,
String secondGeometry)
Tests whether the polygons touch.
|
String |
doPolygon2DWithinTransform(String firstGeometry,
String secondGeometry)
Test whether the first polygon is completely within the second polygon.
|
String |
doRandomNumberTransform()
Returns the required code to generate a random number.
|
String |
doSecondDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in whole seconds.
|
String |
doStringToNumberTransform(String stringResultContainingANumber)
Provide SQL to interpret the String value as a number.
|
String |
doSubsecondTransform(String dateExpression)
Returns the partial second value from the date.
|
String |
doSubstringAfterTransform(String fromThis,
String afterThis)
Generate the SQL to use the SUBSTRING_AFTER function with the 2 String
expressions.
|
String |
doSubstringBeforeTransform(String fromThis,
String beforeThis)
Generate the SQL to use the SUBSTRING_BEFORE function with the 2 String
expressions.
|
String |
doTruncTransform(String firstString,
String secondString)
Transforms 2 SQL snippets that represent a real number and a integer into a
real number with the decimal places reduced to the integer.
|
String |
doWeekDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in days.
|
String |
doYearDifferenceTransform(String dateValue,
String otherDateValue)
Convert the 2 SQL date values into a difference in years.
|
protected String |
formatNameForDatabase(String sqlObjectName)
Apply standard object name transformations required by the database.
|
String |
formatPrimaryKeyForRetrievingGeneratedKeys(String primaryKeyColumnName)
Allows the database to have a different format for the primary key column
name.
|
String |
getColumnAutoIncrementSuffix()
Returns the suffix added to a column definition to support
auto-incrementing a column.
|
String |
getDatabaseDataTypeOfQueryableDatatype(QueryableDatatype<?> qdt)
Supplied to allow the DBDefintion to override the standard QDT datatype.
|
String |
getDateFormattedForQuery(Date date)
Transforms the Date instance into a SQL snippet that can be used as a date
in a query.
|
String |
getDropDatabase(String databaseName)
Provides the SQL statement required to drop the named database.
|
String |
getDropTableStart()
Provides the start of the DROP TABLE expression for this database.
|
String |
getLogBase10FunctionName()
Return the function name for the Logarithm Base10 function.
|
Object |
getOrderByDirectionClause(Boolean sortOrder)
Returns the appropriate ascending or descending keyword for this database
given the sort order.
|
Class<? extends QueryableDatatype<?>> |
getQueryableDatatypeClassForSQLDatatype(String typeName)
Returns the
QueryableDatatype class to be used with the named
database specific datatype. |
String |
getSequenceUpdateSQL(String tableName,
String columnName,
long primaryKeyGenerated) |
protected String |
getSpecialAutoIncrementType()
Provides the special auto-increment type used by this database if it has
one.
|
protected boolean |
hasSpecialAutoIncrementType()
Indicates whether the database uses a special type for it's auto-increment
columns.
|
LargeObjectHandlerType |
preferredLargeObjectReader(DBLargeObject<?> lob) |
LargeObjectHandlerType |
preferredLargeObjectWriter(DBLargeObject<?> lob) |
boolean |
requiresOnClauseForAllJoins() |
boolean |
requiresSequenceUpdateAfterManualInsert() |
boolean |
supportsArcSineFunction()
Indicates that the database supports the ARCSINE function.
|
boolean |
supportsHyperbolicFunctionsNatively()
Indicates that this database supports hyperbolic functions natively.
|
boolean |
supportsModulusFunction()
Indicates whether the database supports the modulus function.
|
boolean |
supportsTableCheckingViaMetaData() |
String |
transformCoordinateArrayToDatabasePolygon2DFormat(List<String> coordinateSQL)
Override this method to provide the SQL that will create a database
Polygon2D value from the list of presumed coordinates.
|
String |
transformCoordinatesIntoDatabasePoint2DFormat(String xValue,
String yValue)
Provide the SQL that correctly represents these coordinates in this
database.
|
com.vividsolutions.jts.geom.LineString |
transformDatabaseLine2DValueToJTSLineString(String lineStringAsString)
From the database's representation of a Lin2D create a JTS LineString.
|
com.vividsolutions.jts.geom.LineSegment |
transformDatabaseLineSegment2DValueToJTSLineSegment(String lineStringAsString)
Convert the String object returned by the database into a JTS LineSegment
object.
|
com.vividsolutions.jts.geom.MultiPoint |
transformDatabaseMultiPoint2DValueToJTSMultiPoint(String pointsAsString)
Convert the database's string representation of a MultiPoint2D value into a
MultiPoint..
|
com.vividsolutions.jts.geom.Point |
transformDatabasePoint2DValueToJTSPoint(String pointAsString)
From the database's representation of a Point2D create a JTS Point.
|
com.vividsolutions.jts.geom.Polygon |
transformDatabasePolygon2DToJTSPolygon(String geometryAsString)
From the database's representation of a Polygon2D create a JTS Polygon.
|
String |
transformLineSegmentIntoDatabaseLineSegment2DFormat(com.vividsolutions.jts.geom.LineSegment lineSegment)
Convert the JTS LineSegment object into a SQL expression that the database
will accept as a line segment.
|
String |
transformLineStringIntoDatabaseLine2DFormat(com.vividsolutions.jts.geom.LineString line)
Provide the SQL that correctly represents this LineString in this database.
|
String |
transformMultiPoint2DToDatabaseMultiPoint2DValue(com.vividsolutions.jts.geom.MultiPoint points)
Provide the SQL that correctly represents this MultiPoint2D value in this
database.
|
String |
transformPoint2DArrayToDatabasePolygon2DFormat(List<String> pointSQL)
Create the SQL to transform a Point2DArray SQL into a Polygon2D
|
String |
transformPoint2DIntoDatabaseFormat(com.vividsolutions.jts.geom.Point point)
Provide the SQL that correctly represents this Point2D in this database.
|
String |
transformPolygonIntoDatabasePolygon2DFormat(com.vividsolutions.jts.geom.Polygon polygon)
Generate the SQL that will transform a WKT version of a Polygon2D into the
database's version of a Polygon2D.
|
DBExpression |
transformToStorableType(DBExpression columnExpression)
Transform a datatype not supported by the database into a type that the
database does support.
|
beginAndLine, beginConditionClauseLine, beginDeleteLine, beginFromClause, beginFullOuterJoin, beginGroupByClause, beginInnerJoin, beginInsertColumnList, beginInsertLine, beginJoinClauseLine, beginLeftOuterJoin, beginNumberValue, beginOnClause, beginOrderByClause, beginOrLine, beginRightOuterJoin, beginSelectStatement, beginSetClause, beginStringValue, beginTableAlias, beginUpdateLine, beginValueClause, beginWhereClause, beginWhereClauseLine, beginWithClause, beginWithClausePrimingQuery, beginWithClauseRecursiveQuery, countStarClause, doBooleanArrayElementTransform, doBooleanArrayResultInterpretation, doBooleanStatementToBooleanComparisonValueTransform, doBooleanValueToBooleanComparisonValueTransform, doChooseTransformation, doConcatTransform, doCurrentDateTimeTransform, doCurrentTimeTransform, doDateAtTimeZoneTransform, doDateIfNullTransform, doDateMinusDateRepeatTransform, doDateMinusToDateRepeatTransformation, doDatePlusDateRepeatTransform, doDateRepeatEqualsTransform, doDateRepeatGetDaysTransform, doDateRepeatGetHoursTransform, doDateRepeatGetMinutesTransform, doDateRepeatGetMonthsTransform, doDateRepeatGetSecondsTransform, doDateRepeatGetYearsTransform, doDateRepeatGreaterThanEqualsTransform, doDateRepeatGreaterThanTransform, doDateRepeatLessThanEqualsTransform, doDateRepeatLessThanTransform, doDateRepeatNotEqualsTransform, doDateRepeatToStringTransform, doDayTransform, doDegreesTransform, doEndOfMonthTransform, doGreatestOfTransformation, doHourTransform, doIfThenElseTransform, doIntegerEqualsTransform, doIntegerIfNullTransform, doIntegerToNumberTransform, doIntegerToStringTransform, doInTransform, doLeastOfTransformation, doLeftTrimTransform, doLine2DGetMagnitudeTransform, doLine2DHasMagnitudeTransform, doLine2DMeasurableDimensionsTransform, doLine2DNotEqualsTransform, doLine2DSpatialDimensionsTransform, doLineSegment2DDimensionTransform, doLineSegment2DEndPointTransform, doLineSegment2DGetMagnitudeTransform, doLineSegment2DHasMagnitudeTransform, doLineSegment2DSpatialDimensionsTransform, doLineSegment2DStartPointTransform, doLogBase10IntegerTransform, doLowercaseTransform, doMinuteTransform, doModulusTransform, doMonthTransform, doMultiPoint2DGetMagnitudeTransform, doMultiPoint2DHasMagnitudeTransform, doMultiPoint2DNotEqualsTransform, doMultiPoint2DSpatialDimensionsTransform, doNumberEqualsTransform, doNumberIfNullTransform, doNumberToIntegerTransform, doNumberToStringTransform, doPoint2DDistanceBetweenTransform, doPoint2DGetMagnitudeTransform, doPoint2DHasMagnitudeTransform, doPoint2DSpatialDimensionsTransform, doPolygon2DGetMagnitudeTransform, doPolygon2DHasMagnitudeTransform, doPolygon2DSpatialDimensionsTransform, doPositionInStringTransform, doRadiansTransform, doRandomIntegerTransform, doReplaceTransform, doRightTrimTransform, doRoundTransform, doRoundWithDecimalPlacesTransform, doSecondTransform, doSelectFromRecursiveTable, doStringEqualsTransform, doStringIfNullTransform, doStringLengthTransform, doSubstringTransform, doTrimFunction, doUppercaseTransform, doWrapQueryForPaging, doYearTransform, dropTriggerBasedIdentitySQL, endDeleteLine, endInsertColumnList, endInsertLine, endMultilineComment, endNumberValue, endOnClause, endOrderByClause, endSQLStatement, endStringValue, endTableAlias, endValueClause, endWithClausePrimingQuery, endWithClauseRecursiveQuery, formatColumnName, formatColumnNameForDBQueryResultSet, formatExpressionAlias, formatForColumnAlias, formatTableAlias, formatTableAliasAndColumnName, formatTableAliasAndColumnNameForSelectClause, formatTableAndColumnName, formatTableName, formatWithClauseTableDefinition, getAlterTableAddForeignKeyStatement, getAlterTableDropForeignKeyStatement, getArctan2FunctionName, getAverageFunctionName, getCheezBurger, getChooseFunctionName, getCountFunctionName, getCreateTableColumnsEnd, getCreateTableColumnsNameAndTypeSeparator, getCreateTableColumnsSeparator, getCreateTableColumnsStart, getCreateTablePrimaryKeyClauseEnd, getCreateTablePrimaryKeyClauseMiddle, getCreateTablePrimaryKeyClauseStart, getCreateTableStart, getCurrentDateOnlyFunctionName, getCurrentDateTimeFunction, getCurrentTimeFunction, getCurrentUserFunctionName, getDatePartsFormattedForQuery, getEmptyString, getEqualsComparator, getExpFunctionName, getFalseOperation, getFalseValue, getForeignKeyClauseForCreateTable, getFromClause, getGreatestOfFunctionName, getHavingClauseStart, getIfNullFunctionName, getIndexClauseForCreateTable, getLeastOfFunctionName, getLimitRowsSubClauseAfterWhereClause, getLimitRowsSubClauseDuringSelectClause, getLowercaseFunctionName, getMaxFunctionName, getMinFunctionName, getNaturalLogFunctionName, getNegationFunctionName, getNextSequenceValueFunctionName, getNotEqualsComparator, getNull, getNumericPrecision, getNumericScale, getPreparedVariableSymbol, getPrimaryKeySequenceName, getPrimaryKeyTriggerName, getRecursiveQueryDepthColumnName, getRetrieveLastInsertedRowSQL, getRightTrimFunctionName, getRoundUpFunctionName, getSpatial2DIndexSQL, getSpecialPrimaryKeyTypeOfDBDatatype, getSQLToCheckTableExists, getSQLTypeAndModifiersOfDBDatatype, getStandardDeviationFunctionName, getStartingOrderByClauseSeparator, getStartingSelectSubClauseSeparator, getStartingSetSubClauseSeparator, getStringLengthFunctionName, getSubsequentGroupBySubClauseSeparator, getSubsequentOrderByClauseSeparator, getSubsequentSelectSubClauseSeparator, getSubsequentSetSubClauseSeparator, getSumFunctionName, getSystemTableExclusionPattern, getTableAlias, getTableAliasForObject, getTriggerBasedIdentitySQL, getTrueOperation, getTrueValue, getTruncFunctionName, getUnionDistinctOperator, getUnionOperator, getUppercaseFunctionName, getUTCDateFormattedForQuery, getValuesClauseColumnSeparator, getValuesClauseValueSeparator, getWhereClauseBeginningCondition, getWhereClauseBeginningCondition, hasSpecialPrimaryKeyTypeForDBDatatype, isColumnNamesCaseSensitive, parseDateFromGetString, parseDateRepeatFromGetString, persistentConnectionRequired, prefersDatesReadAsStrings, prefersIndexBasedGroupByClause, prefersIndexBasedOrderByClause, prefersLargeObjectsReadAsBase64CharacterStream, prefersLargeObjectsReadAsBLOB, prefersLargeObjectsReadAsBytes, prefersLargeObjectsReadAsCLOB, prefersLargeObjectsSetAsBase64String, prefersLargeObjectsSetAsBLOB, prefersLargeObjectsSetAsCharacterStream, prefersTrailingPrimaryKeyDefinition, prefersTriggerBasedIdentities, propertyWrapperConformsToAutoIncrementType, requiresRecursiveTableAlias, requiresSpatial2DIndexes, safeString, sanityCheckDBTableField, startMultilineComment, supportsAlterTableAddConstraint, supportsArraysNatively, supportsChooseNatively, supportsComparingBooleanResults, supportsCotangentFunction, supportsDegreesFunction, supportsDifferenceBetweenNullAndEmptyString, supportsExpFunction, supportsFullOuterJoin, supportsFullOuterJoinNatively, supportsGeneratedKeys, supportsGreatestOfNatively, supportsLeastOfNatively, supportsPagingNatively, supportsPurelyFunctionalGroupByColumns, supportsRadiansFunction, supportsRecursiveQueriesNatively, supportsRetrievingLastInsertedRowViaSQL, supportsRightOuterJoinNatively, supportsRowLimitsNatively, supportsStandardDeviationFunction, supportsStatementIsClosed, supportsUnionDistinct, supportsXOROperator, toLowerCase, transformPeriodIntoDateRepeat, willCloseConnectionOnStatementCancelpublic String getDropDatabase(String databaseName) throws UnsupportedOperationException
DBDefinitiongetDropDatabase in class DBDefinitiondatabaseName - databaseName
Support DBvolution at Patreon
UnsupportedOperationExceptionpublic String getDropTableStart()
DBDefinitionSupport DBvolution at Patreon
getDropTableStart in class DBDefinitionpublic String formatPrimaryKeyForRetrievingGeneratedKeys(String primaryKeyColumnName)
DBDefinitionMost databases do not have a problem with this method but PostgreSQL likes the column name to be lowercase in this particular instance.
formatPrimaryKeyForRetrievingGeneratedKeys in class DBDefinitionprimaryKeyColumnName - the name of the primary key column formatted
for this database
Support DBvolution at Patreon
protected String formatNameForDatabase(String sqlObjectName)
DBDefinitionThis methods helps support database specific naming rules by allowing post-processing of the object names to conform to the rules.
formatNameForDatabase in class DBDefinitionsqlObjectName - the Java object name to be transformed into a database
object name.
Support DBvolution at Patreon
public String getDateFormattedForQuery(Date date)
DBDefinitionFor instance the date might be transformed into a string like " DATETIME('2013-03-23 00:00:00') "
getDateFormattedForQuery in class DBDefinitiondate - date
Support DBvolution at Patreon
public String getDatabaseDataTypeOfQueryableDatatype(QueryableDatatype<?> qdt)
DBDefinitionWhen the
getDatabaseDataTypeOfQueryableDatatype in class DBDefinitionqdt - qdt
Support DBvolution at Patreon
public Class<? extends QueryableDatatype<?>> getQueryableDatatypeClassForSQLDatatype(String typeName)
DBDefinitionQueryableDatatype class to be used with the named
database specific datatype.
This method is called during DBTableClassGenerator to resolve data
types that JDBC doesn't recognize into a QDT. In particular anything that
JDBC reports as Types.OTHER will be resolved using this
method.
The default method returns NULL which causes the generator to use a DBJavaObject.
getQueryableDatatypeClassForSQLDatatype in class DBDefinitiontypeName - the name of the SQL data type as reported by JDBC
Support DBvolution at Patreon
public Object getOrderByDirectionClause(Boolean sortOrder)
DBDefinitiongetOrderByDirectionClause in class DBDefinitionsortOrder - sortOrder
Support DBvolution at Patreon
public String doTruncTransform(String firstString, String secondString)
DBDefinition0 decimal places transforms the real number into an integer.
doTruncTransform in class DBDefinitionfirstString - realNumberExpressionsecondString - numberOfDecimalPlacesExpression
Support DBvolution at Patreon
public String doBooleanToIntegerTransform(String columnName)
DBDefinitionUsed to allow comparison of bit columns in some databases.
doBooleanToIntegerTransform in class DBDefinitioncolumnName - bitExpression
Support DBvolution at Patreon
public String doIntegerToBitTransform(String columnName)
DBDefinitionUsed to allow comparison of integer columns in some databases.
doIntegerToBitTransform in class DBDefinitioncolumnName - bitExpression
Support DBvolution at Patreon
public String doBitsValueTransform(boolean[] boolArray)
DBDefinitiondoBitsValueTransform in class DBDefinitionboolArray - booleanArray
Support DBvolution at Patreon
public String getColumnAutoIncrementSuffix()
DBDefinitionSupport DBvolution at Patreon
getColumnAutoIncrementSuffix in class DBDefinitionprotected boolean hasSpecialAutoIncrementType()
DBDefinitionSupport DBvolution at Patreon
hasSpecialAutoIncrementType in class DBDefinitionprotected String getSpecialAutoIncrementType()
DBDefinitionSupport DBvolution at Patreon
getSpecialAutoIncrementType in class DBDefinitionpublic boolean supportsModulusFunction()
DBDefinitionSupport DBvolution at Patreon
supportsModulusFunction in class DBDefinitionpublic String doSubsecondTransform(String dateExpression)
DBDefinitionThis should return the most detailed possible value less than a second for the date expression provided. It should always return a value less than 1s.
doSubsecondTransform in class DBDefinitiondateExpression - the date from which to get the subsecond part of.
Support DBvolution at Patreon
public String doAddSecondsTransform(String dateValue, String numberOfSeconds)
DBDefinitiondoAddSecondsTransform in class DBDefinitiondateValue - dateValuenumberOfSeconds - numberOfSeconds
Support DBvolution at Patreon
public String doAddMinutesTransform(String dateValue, String numberOfMinutes)
DBDefinitiondoAddMinutesTransform in class DBDefinitiondateValue - dateValuenumberOfMinutes - numberOfMinutes
Support DBvolution at Patreon
public String doAddDaysTransform(String dateValue, String numberOfDays)
DBDefinitiondoAddDaysTransform in class DBDefinitiondateValue - dateValuenumberOfDays - numberOfDays
Support DBvolution at Patreon
public String doAddHoursTransform(String dateValue, String numberOfHours)
DBDefinitiondoAddHoursTransform in class DBDefinitiondateValue - dateValuenumberOfHours - numberOfHours
Support DBvolution at Patreon
public String doAddWeeksTransform(String dateValue, String numberOfWeeks)
DBDefinitiondoAddWeeksTransform in class DBDefinitiondateValue - dateValuenumberOfWeeks - numberOfWeeks
Support DBvolution at Patreon
public String doAddMonthsTransform(String dateValue, String numberOfWeeks)
DBDefinitiondoAddMonthsTransform in class DBDefinitiondateValue - dateValuenumberOfWeeks - numberOfMonths
Support DBvolution at Patreon
public String doAddYearsTransform(String dateValue, String numberOfWeeks)
DBDefinitiondoAddYearsTransform in class DBDefinitiondateValue - dateValuenumberOfWeeks - numberOfYears
Support DBvolution at Patreon
public String doBooleanValueTransform(Boolean boolValue)
DBDefinitiondoBooleanValueTransform in class DBDefinitionboolValue - boolValue
Support DBvolution at Patreon
public String doCurrentDateOnlyTransform()
DBDefinitionSupport DBvolution at Patreon
doCurrentDateOnlyTransform in class DBDefinitionpublic String doDayDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoDayDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doWeekDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoWeekDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doMonthDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoMonthDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doYearDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoYearDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doHourDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoHourDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doMinuteDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoMinuteDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doSecondDifferenceTransform(String dateValue, String otherDateValue)
DBDefinitiondoSecondDifferenceTransform in class DBDefinitiondateValue - dateValueotherDateValue - otherDateValue
Support DBvolution at Patreon
public String doDayOfWeekTransform(String dateSQL)
DBDefinitionProvides access to the day of the week as a number from 1 for Sunday to 7 for Saturday.
doDayOfWeekTransform in class DBDefinitiondateSQL - the date to get the day of the week for.
Support DBvolution at Patreon
public String doBooleanArrayTransform(Boolean[] bools)
DBDefinitionThe default implementation changes the array into a string of 0s and 1s.
doBooleanArrayTransform in class DBDefinitionbools - all the true/false values
Support DBvolution at Patreon
public String doPolygon2DIntersectionTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DIntersectionTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DOverlapsTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DOverlapsTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DIntersectsTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DIntersectsTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DTouchesTransform(String firstGeometry, String secondGeometry)
DBDefinitionChecks that a) the polygons have at least on point in common and b) that their interiors do not overlap.
doPolygon2DTouchesTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DGetAreaTransform(String toSQLString)
DBDefinitiondoPolygon2DGetAreaTransform in class DBDefinitiontoSQLString - a polygon2D value
Support DBvolution at Patreon
public String doPolygon2DGetBoundingBoxTransform(String toSQLString)
DBDefinitiondoPolygon2DGetBoundingBoxTransform in class DBDefinitiontoSQLString - a polygon2D value
Support DBvolution at Patreon
public String doPolygon2DEqualsTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DEqualsTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DContainsPolygon2DTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DContainsPolygon2DTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DContainsPoint2DTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoPolygon2DContainsPoint2DTransform in class DBDefinitionfirstGeometry - the polygon2d to compare withsecondGeometry - the point2d value that might be inside the polygon2d
Support DBvolution at Patreon
public String doPolygon2DDoesNotIntersectTransform(String firstGeometry, String secondGeometry)
DBDefinitionDBDefinition.doPolygon2DIntersectsTransform(java.lang.String, java.lang.String), tests whether the 2 polygons are non-coincident.doPolygon2DDoesNotIntersectTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DWithinTransform(String firstGeometry, String secondGeometry)
DBDefinition
Compare this to DBDefinition.doPolygon2DContainsPolygon2DTransform(java.lang.String, java.lang.String)
doPolygon2DWithinTransform in class DBDefinitionfirstGeometry - the first polygon2d value to comparesecondGeometry - the second polygon2d value to compare
Support DBvolution at Patreon
public String doPolygon2DMeasurableDimensionsTransform(String toSQLString)
DBDefinitionThis will be "2"
doPolygon2DMeasurableDimensionsTransform in class DBDefinitiontoSQLString - a polygon2d value
Support DBvolution at Patreon
public String doPolygon2DGetExteriorRingTransform(String polygon2DSQL)
DBDefinitiondoPolygon2DGetExteriorRingTransform in class DBDefinitionpolygon2DSQL - a polygon2D value
Support DBvolution at Patreon
public String doPolygon2DGetMaxXTransform(String polygon2DSQL)
DBDefinitiondoPolygon2DGetMaxXTransform in class DBDefinitionpolygon2DSQL - the polygon2d value
Support DBvolution at Patreon
public String doPolygon2DGetMinXTransform(String polygon2DSQL)
DBDefinitiondoPolygon2DGetMinXTransform in class DBDefinitionpolygon2DSQL - the polygon2d value
Support DBvolution at Patreon
public String doPolygon2DGetMaxYTransform(String polygon2DSQL)
DBDefinitiondoPolygon2DGetMaxYTransform in class DBDefinitionpolygon2DSQL - the polygon2d value
Support DBvolution at Patreon
public String doPolygon2DGetMinYTransform(String polygon2DSQL)
DBDefinitiondoPolygon2DGetMinYTransform in class DBDefinitionpolygon2DSQL - the polygon2d value
Support DBvolution at Patreon
public String doPolygon2DAsTextTransform(String toSQLString)
DBDefinitiondoPolygon2DAsTextTransform in class DBDefinitiontoSQLString - the polygon2d value
Support DBvolution at Patreon
public boolean supportsHyperbolicFunctionsNatively()
DBDefinitionSupport DBvolution at Patreon
supportsHyperbolicFunctionsNatively in class DBDefinitionpublic String doStringToNumberTransform(String stringResultContainingANumber)
DBDefinitionFull of ways to fail this is.
doStringToNumberTransform in class DBDefinitionstringResultContainingANumber - a number value to be coerced to string
Support DBvolution at Patreon
public boolean supportsArcSineFunction()
DBDefinitionSupport DBvolution at Patreon
supportsArcSineFunction in class DBDefinitionpublic String transformCoordinatesIntoDatabasePoint2DFormat(String xValue, String yValue)
DBDefinition
The same as
DBDefinition.transformPoint2DIntoDatabaseFormat(com.vividsolutions.jts.geom.Point)
but for two coordinates as SQL.
transformCoordinatesIntoDatabasePoint2DFormat in class DBDefinitionxValue - a number valueyValue - a number value
Support DBvolution at Patreon
public String doPoint2DEqualsTransform(String firstPoint, String secondPoint)
DBDefinitiondoPoint2DEqualsTransform in class DBDefinitionfirstPoint - a point2d value to comparesecondPoint - a point2d value to compare
Support DBvolution at Patreon
public String doPoint2DGetXTransform(String point2D)
DBDefinitiondoPoint2DGetXTransform in class DBDefinitionpoint2D - a point2d value
Support DBvolution at Patreon
public String doPoint2DGetYTransform(String point2D)
DBDefinitiondoPoint2DGetYTransform in class DBDefinitionpoint2D - a point2d value
Support DBvolution at Patreon
public String doPoint2DMeasurableDimensionsTransform(String point2D)
DBDefinitionPoint is a 0-dimensional objects for this purpose.
doPoint2DMeasurableDimensionsTransform in class DBDefinitionpoint2D - a point2d value
Support DBvolution at Patreon
public String doPoint2DGetBoundingBoxTransform(String point2D)
DBDefinitiondoPoint2DGetBoundingBoxTransform in class DBDefinitionpoint2D - a point2d value
Support DBvolution at Patreon
public String doPoint2DAsTextTransform(String point2DString)
DBDefinitiondoPoint2DAsTextTransform in class DBDefinitionpoint2DString - a point2d value
Support DBvolution at Patreon
public String transformPoint2DIntoDatabaseFormat(com.vividsolutions.jts.geom.Point point)
DBDefinitiontransformPoint2DIntoDatabaseFormat in class DBDefinitionpoint - a point to be turned into an SQL point2d value.
Support DBvolution at Patreon
public String transformLineStringIntoDatabaseLine2DFormat(com.vividsolutions.jts.geom.LineString line)
DBDefinitiontransformLineStringIntoDatabaseLine2DFormat in class DBDefinitionline - a linestring to transform in to a Line2D value
Support DBvolution at Patreon
public String doColumnTransformForSelect(QueryableDatatype<?> qdt, String selectableName)
DBDefinitionPrimarily used on Spatial types, this method allows a data type unknown to JDBC to be transformed into the necessary type (usually a String) to be read by Java and DBvolution.
doColumnTransformForSelect in class DBDefinitionqdt - the DBV value to be storedselectableName - the selectable value
Support DBvolution at Patreon
public com.vividsolutions.jts.geom.Point transformDatabasePoint2DValueToJTSPoint(String pointAsString) throws com.vividsolutions.jts.io.ParseException
DBDefinition
This is the inverse of DBDefinition.transformPoint2DIntoDatabaseFormat(com.vividsolutions.jts.geom.Point).
transformDatabasePoint2DValueToJTSPoint in class DBDefinitionpointAsString - a point2d value
Support DBvolution at Patreon
com.vividsolutions.jts.io.ParseException - if the database result is
not a valid WKTpublic com.vividsolutions.jts.geom.Polygon transformDatabasePolygon2DToJTSPolygon(String geometryAsString) throws com.vividsolutions.jts.io.ParseException
DBDefinition
This is the inverse of
DBDefinition.transformPolygonIntoDatabasePolygon2DFormat(com.vividsolutions.jts.geom.Polygon).
transformDatabasePolygon2DToJTSPolygon in class DBDefinitiongeometryAsString - a polygon2d value
Support DBvolution at Patreon
com.vividsolutions.jts.io.ParseException - if the database result is
not a valid WKTpublic com.vividsolutions.jts.geom.LineString transformDatabaseLine2DValueToJTSLineString(String lineStringAsString) throws com.vividsolutions.jts.io.ParseException
DBDefinition
This is the inverse of
DBDefinition.transformPolygonIntoDatabasePolygon2DFormat(com.vividsolutions.jts.geom.Polygon).
transformDatabaseLine2DValueToJTSLineString in class DBDefinitionlineStringAsString - a line2d value
Support DBvolution at Patreon
com.vividsolutions.jts.io.ParseException - if the database result is
not a valid WKTpublic String doLine2DEqualsTransform(String firstLineSQL, String secondLineSQL)
DBDefinitiondoLine2DEqualsTransform in class DBDefinitionfirstLineSQL - the first line2d value to comparesecondLineSQL - the second line2d value to compare
Support DBvolution at Patreon
public String doLine2DAsTextTransform(String line2DSQL)
DBDefinitiondoLine2DAsTextTransform in class DBDefinitionline2DSQL - a line2d value
Support DBvolution at Patreon
public String doLine2DGetBoundingBoxTransform(String toSQLString)
DBDefinitiondoLine2DGetBoundingBoxTransform in class DBDefinitiontoSQLString - the line2d value
Support DBvolution at Patreon
public String doLine2DGetMaxXTransform(String toSQLString)
DBDefinitiondoLine2DGetMaxXTransform in class DBDefinitiontoSQLString - the line2d value
Support DBvolution at Patreon
public String doLine2DGetMinXTransform(String toSQLString)
DBDefinitiondoLine2DGetMinXTransform in class DBDefinitiontoSQLString - the line2d value
Support DBvolution at Patreon
public String doLine2DGetMaxYTransform(String toSQLString)
DBDefinitiondoLine2DGetMaxYTransform in class DBDefinitiontoSQLString - the line2 value
Support DBvolution at Patreon
public String doLine2DGetMinYTransform(String toSQLString)
DBDefinitiondoLine2DGetMinYTransform in class DBDefinitiontoSQLString - the line2d value
Support DBvolution at Patreon
public String doLine2DIntersectsLine2DTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoLine2DIntersectsLine2DTransform in class DBDefinitionfirstGeometry - the first line2d value to comparesecondGeometry - the second line2d value to compare
Support DBvolution at Patreon
public String doLine2DIntersectionPointWithLine2DTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoLine2DIntersectionPointWithLine2DTransform in class DBDefinitionfirstGeometry - the first line2d to comparesecondGeometry - the second line2d to compare
Support DBvolution at Patreon
public String doLine2DAllIntersectionPointsWithLine2DTransform(String firstGeometry, String secondGeometry)
DBDefinitiondoLine2DAllIntersectionPointsWithLine2DTransform in class DBDefinitionfirstGeometry - the first line2d to comparesecondGeometry - the second line2d to compare
Support DBvolution at Patreon
public String doSubstringBeforeTransform(String fromThis, String beforeThis)
DBDefinitiondoSubstringBeforeTransform in class DBDefinitionfromThis - the string value to be dissectedbeforeThis - the string value that indicates the end of the required
text. Not included in the returned value
Support DBvolution at Patreon
public String doSubstringAfterTransform(String fromThis, String afterThis)
DBDefinitiondoSubstringAfterTransform in class DBDefinitionfromThis - the string value to be dissectedafterThis - the string value that indicates the beginning of the
required text. Not included in the returned value.
Support DBvolution at Patreon
public String transformPolygonIntoDatabasePolygon2DFormat(com.vividsolutions.jts.geom.Polygon polygon)
DBDefinitiontransformPolygonIntoDatabasePolygon2DFormat in class DBDefinitionpolygon - the polygon2d value
Support DBvolution at Patreon
public String transformCoordinateArrayToDatabasePolygon2DFormat(List<String> coordinateSQL)
DBDefinitionCoordinates are a series of number values that are presumed to be pairs of X and Y values. That is to say the list is a list number values with no formatting other than that required to express the values as numbers.
transformCoordinateArrayToDatabasePolygon2DFormat in class DBDefinitioncoordinateSQL - lots of numbers
Support DBvolution at Patreon
public String transformPoint2DArrayToDatabasePolygon2DFormat(List<String> pointSQL)
DBDefinitiontransformPoint2DArrayToDatabasePolygon2DFormat in class DBDefinitionpointSQL - the point2d value
Support DBvolution at Patreon
public DBExpression transformToStorableType(DBExpression columnExpression)
DBDefinitionUsed mostly to turn Booleans into numbers.
By default this method just returns the input DBExpression.
transformToStorableType in class DBDefinitioncolumnExpression - a column expression that might need to change type
for this database
Support DBvolution at Patreon
public String transformLineSegmentIntoDatabaseLineSegment2DFormat(com.vividsolutions.jts.geom.LineSegment lineSegment)
DBDefinitionBy default, creates a WKT representation
transformLineSegmentIntoDatabaseLineSegment2DFormat in class DBDefinitionlineSegment - the LineSegment to convert to database format.
Support DBvolution at Patreon
public com.vividsolutions.jts.geom.LineSegment transformDatabaseLineSegment2DValueToJTSLineSegment(String lineStringAsString) throws com.vividsolutions.jts.io.ParseException
DBDefinitiontransformDatabaseLineSegment2DValueToJTSLineSegment in class DBDefinitionlineStringAsString - the database linesegment2d value to create a
JTS LineSegment with
Support DBvolution at Patreon
com.vividsolutions.jts.io.ParseException - malformed WKT will throw
an exceptionpublic String doLineSegment2DIntersectsLineSegment2DTransform(String toSQLString, String toSQLString0)
DBDefinitiondoLineSegment2DIntersectsLineSegment2DTransform in class DBDefinitiontoSQLString - the first Line2D value to comparetoSQLString0 - the second Line2D value to compare
Support DBvolution at Patreon
DBDefinition.doLineSegment2DIntersectionPointWithLineSegment2DTransform(java.lang.String,
java.lang.String)public String doLineSegment2DGetMaxXTransform(String toSQLString)
DBDefinitiondoLineSegment2DGetMaxXTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DGetMinXTransform(String toSQLString)
DBDefinitiondoLineSegment2DGetMinXTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DGetMaxYTransform(String toSQLString)
DBDefinitiondoLineSegment2DGetMaxYTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DGetMinYTransform(String toSQLString)
DBDefinitiondoLineSegment2DGetMinYTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DGetBoundingBoxTransform(String toSQLString)
DBDefinitiondoLineSegment2DGetBoundingBoxTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DNotEqualsTransform(String toSQLString, String toSQLString0)
DBDefinitiondoLineSegment2DNotEqualsTransform in class DBDefinitiontoSQLString - the first LineSegment2D valuetoSQLString0 - the second LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DEqualsTransform(String toSQLString, String toSQLString0)
DBDefinitiondoLineSegment2DEqualsTransform in class DBDefinitiontoSQLString - the first LineSegment2D valuetoSQLString0 - the second LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DAsTextTransform(String toSQLString)
DBDefinitiondoLineSegment2DAsTextTransform in class DBDefinitiontoSQLString - the LineSegment2D value
Support DBvolution at Patreon
public String doLineSegment2DIntersectionPointWithLineSegment2DTransform(String firstLineSegment, String secondLineSegment)
DBDefinitiondoLineSegment2DIntersectionPointWithLineSegment2DTransform in class DBDefinitionfirstLineSegment - the first LineSegment2D valuesecondLineSegment - the second LineSegment2D value
Support DBvolution at Patreon
public String transformMultiPoint2DToDatabaseMultiPoint2DValue(com.vividsolutions.jts.geom.MultiPoint points)
DBDefinitiontransformMultiPoint2DToDatabaseMultiPoint2DValue in class DBDefinitionpoints - the MultiPoint2D value
Support DBvolution at Patreon
public com.vividsolutions.jts.geom.MultiPoint transformDatabaseMultiPoint2DValueToJTSMultiPoint(String pointsAsString) throws com.vividsolutions.jts.io.ParseException
DBDefinitiontransformDatabaseMultiPoint2DValueToJTSMultiPoint in class DBDefinitionpointsAsString - the MultiPoint2D value to create a
JTS MultiPoint with.
Support DBvolution at Patreon
JTS MultiPoint instancecom.vividsolutions.jts.io.ParseException - malformed WKT values will
throw an exceptionpublic String doMultiPoint2DEqualsTransform(String first, String second)
DBDefinitiondoMultiPoint2DEqualsTransform in class DBDefinitionfirst - the first MultiPoint2D value to comparesecond - the second MultiPoint2D value to compare
Support DBvolution at Patreon
public String doMultiPoint2DGetPointAtIndexTransform(String first, String index)
DBDefinitiondoMultiPoint2DGetPointAtIndexTransform in class DBDefinitionfirst - the first MultiPoint2D value to retrieve a point from.index - the index at which the required point is at.
Support DBvolution at Patreon
public String doMultiPoint2DGetNumberOfPointsTransform(String first)
DBDefinitiondoMultiPoint2DGetNumberOfPointsTransform in class DBDefinitionfirst - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DMeasurableDimensionsTransform(String first)
DBDefinitiondoMultiPoint2DMeasurableDimensionsTransform in class DBDefinitionfirst - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DGetBoundingBoxTransform(String first)
DBDefinitiondoMultiPoint2DGetBoundingBoxTransform in class DBDefinitionfirst - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DAsTextTransform(String first)
DBDefinitiondoMultiPoint2DAsTextTransform in class DBDefinitionfirst - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DToLine2DTransform(String first)
DBDefinitionLine2DResult value.doMultiPoint2DToLine2DTransform in class DBDefinitionfirst - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DGetMinYTransform(String toSQLString)
DBDefinitiondoMultiPoint2DGetMinYTransform in class DBDefinitiontoSQLString - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DGetMinXTransform(String toSQLString)
DBDefinitiondoMultiPoint2DGetMinXTransform in class DBDefinitiontoSQLString - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DGetMaxYTransform(String toSQLString)
DBDefinitiondoMultiPoint2DGetMaxYTransform in class DBDefinitiontoSQLString - the MultiPoint2D value
Support DBvolution at Patreon
public String doMultiPoint2DGetMaxXTransform(String toSQLString)
DBDefinitiondoMultiPoint2DGetMaxXTransform in class DBDefinitiontoSQLString - the MultiPoint2D value
Support DBvolution at Patreon
public LargeObjectHandlerType preferredLargeObjectWriter(DBLargeObject<?> lob)
preferredLargeObjectWriter in class DBDefinitionpublic LargeObjectHandlerType preferredLargeObjectReader(DBLargeObject<?> lob)
preferredLargeObjectReader in class DBDefinitionpublic String getLogBase10FunctionName()
By default this method returns log10
Support DBvolution at Patreon
getLogBase10FunctionName in class DBDefinitionpublic String doLogBase10NumberTransform(String sql)
DBDefinitionBy default this method returns log10(sql)
doLogBase10NumberTransform in class DBDefinitionsql - Support DBvolution at Patreon
public String doFindNumberInStringTransform(String toSQLString)
doFindNumberInStringTransform in class DBDefinitionpublic String doFindIntegerInStringTransform(String toSQLString)
doFindIntegerInStringTransform in class DBDefinitionpublic String doRandomNumberTransform()
DBDefinitionFor each call of this method a new random number is generated.
By default this method returns rand()
Support DBvolution at Patreon
doRandomNumberTransform in class DBDefinitionpublic boolean supportsTableCheckingViaMetaData()
supportsTableCheckingViaMetaData in class DBDefinitionpublic boolean requiresOnClauseForAllJoins()
requiresOnClauseForAllJoins in class DBDefinitionpublic boolean requiresSequenceUpdateAfterManualInsert()
requiresSequenceUpdateAfterManualInsert in class DBDefinitionpublic String getSequenceUpdateSQL(String tableName, String columnName, long primaryKeyGenerated)
getSequenceUpdateSQL in class DBDefinitionCopyright © 2018. All Rights Reserved.