|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.mapped.AbstractDatastoreAdapter
org.jpox.store.rdbms.adapter.DatabaseAdapter
org.jpox.store.rdbms.adapter.PostgreSQLAdapter
org.jpox.store.rdbms.adapter.PostGISAdapter
public class PostGISAdapter
Provides methods for adapting SQL language elements for the PostGIS extension.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.store.rdbms.adapter.DatabaseAdapter |
|---|
org.jpox.store.rdbms.adapter.DatabaseAdapter.JDBCTypeInfo |
| Field Summary | |
|---|---|
static java.lang.String |
HAS_MEASURE_EXTENSION_KEY
Key name for the hasMeasure extension. |
protected static org.jpox.util.Localiser |
LOCALISER_POSTGIS
|
| Fields inherited from class org.jpox.store.rdbms.adapter.PostgreSQLAdapter |
|---|
POSTGRESQL_RESERVED_WORDS, psqlTypes |
| Fields inherited from class org.jpox.store.rdbms.adapter.DatabaseAdapter |
|---|
catalogSeparator, driverMajorVersion, driverMinorVersion, driverName, driverVersion, LOCALISER, maxColumnNameLength, maxConstraintNameLength, maxIndexNameLength, maxTableNameLength, storesLowerCaseIdentifiers, storesLowerCaseQuotedIdentifiers, storesMixedCaseIdentifiers, storesMixedCaseQuotedIdentifiers, storesMixedCaseQuotedSensitiveIdentifiers, storesMixedCaseSensitiveIdentifiers, storesUpperCaseIdentifiers, storesUpperCaseQuotedIdentifiers, supportsCatalogsInTableDefinitions, supportsSchemasInTableDefinitions, supportsStatementBatching, typesByTypeNumber |
| Fields inherited from class org.jpox.store.mapped.AbstractDatastoreAdapter |
|---|
datastoreMajorVersion, datastoreMinorVersion, datastoreProductName, datastoreProductVersion, datastoreRevisionVersion, identifierQuoteString, LOCALISER_BASE, mappingManager, reservedKeywords |
| Fields inherited from interface org.jpox.store.rdbms.adapter.SpatialRDBMSAdapter |
|---|
DIMENSION_EXTENSION_KEY, SRID_EXTENSION_KEY |
| Constructor Summary | |
|---|---|
PostGISAdapter(java.sql.DatabaseMetaData metadata)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAddColumnStatement(org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.store.rdbms.Column column)
|
java.lang.String |
getAddPrimaryKeyStatement(org.jpox.store.rdbms.key.PrimaryKey pk,
org.jpox.store.mapped.IdentifierFactory factory)
|
java.lang.String |
getCalculateBoundsStatement(org.jpox.store.rdbms.table.Table table,
org.jpox.store.rdbms.Column column)
Returns the appropriate SQL statement that calculates the bounds of all geometries in the given column. |
java.lang.String |
getCreateTableStatement(org.jpox.store.rdbms.table.TableImpl table,
org.jpox.store.rdbms.Column[] columns,
java.util.Properties props)
|
java.lang.String |
getRetrieveCrsNameStatement(org.jpox.store.rdbms.table.Table table,
int srid)
Returns the appropriate SQL statement to retrieve the name of the Coordinate Reference System (CRS) with the given srid. |
java.lang.String |
getRetrieveCrsWktStatement(org.jpox.store.rdbms.table.Table table,
int srid)
Returns the appropriate SQL statement to retrieve description of the Coordinate Reference System (CRS) with the given srid. |
boolean |
isGeometryColumn(org.jpox.store.rdbms.Column column)
Checks whether the given column is geometry backed by the datastore. |
boolean |
supportsPrimaryKeyInCreateStatements()
|
| Methods inherited from class org.jpox.store.rdbms.adapter.PostgreSQLAdapter |
|---|
getAutoIncrementKeyword, getAutoIncrementStmt, getCharColumnsPaddedWithSpaces, getDayMethod, getDropTableStatement, getEscapePatternExpression, getHourMethod, getInsertStatementForNoColumns, getMinuteMethod, getMonthMethod, getRangeByLimitWhereClause, getSecondMethod, getSequenceCreateStmt, getSequenceNextStmt, getSupportsPersistOfUnassignedChar, getVendorID, getYearMethod, indexOfMethod, isBitReallyBoolean, newColumnInfo, newForeignKeyInfo, newTableExpression, newTypeInfo, supportsAlterTableDropConstraint, supportsAnalysisMethods, supportsAutoIncrementColumnTypeSpecification, supportsAutoIncrementKeysNullSpecification, supportsDistinctWithSelectForUpdate, supportsIdentityFields, supportsLockWithSelectForUpdate, supportsQueryFetchSize, supportsSequences, supportsTransactionIsolationLevel |
| Methods inherited from class org.jpox.store.rdbms.adapter.DatabaseAdapter |
|---|
absMethod, acosMethod, addTypeInfo, asinMethod, atanMethod, cartersianProduct, ceilMethod, closeConnection, concatOperator, cosMethod, createIndexesBeforeForeignKeys, endsWithMethod, expMethod, floorMethod, getAddCandidateKeyStatement, getAddForeignKeyStatement, getCatalogName, getCatalogSeparator, getCheckConstraintForValues, getColumns, getColumns, getConnection, getContinuationString, getCreateIndexStatement, getCurrentDateMethod, getCurrentTimeMethod, getCurrentTimestampMethod, getDatastoreDateStatement, getDriverMajorVersion, getDriverMinorVersion, getDropViewStatement, getEscapeCharacter, getEscapedPatternExpression, getExistingIndexes, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeys, getMaxIndexes, getMaxIndexNameLength, getMaxTableNameLength, getNewMappingManager, getNewUUIDFunction, getNonAnsiInnerJoinWhereClause, getNonAnsiLeftOuterJoinWhereClause, getNonAnsiRightOuterJoinWhereClause, getOperatorConcat, getPatternExpressionAnyCharacter, getPatternExpressionZeroMoreCharacters, getPlaceWithOptionAfterFromClause, getPlaceWithOptionWithinJoinClauses, getRangeByLimitSelectClause, getRangeByRowNumberColumn, getRequiredTransactionIsolationLevel, getSchemaName, getSelectNewUUIDStmt, getSelectWithLockOption, getSurrogateForEmptyStrings, getTables, getTransactionIsolationForSchemaCreation, getTypeInfo, getUnlimitedLengthPrecisionValue, includeOrderByColumnsInSelect, initialiseDatastore, isIdentityFieldDataType, isNullEqualsEmptyStrings, isSQLKeyword, isStoresLowerCaseIdentifiers, isStoresLowerCaseQuotedIdentifiers, isStoresMixedCaseIdentifiers, isStoresMixedCaseQuotedIdentifiers, isStoresUpperCaseIdentifiers, isStoresUpperCaseQuotedIdentifiers, isValidPrimaryKeyType, iteratorReservedWords, iteratorTypeInfo, lengthMethod, loadDatastoreMapping, logConfiguration, logMethod, matchesMethod, newExportedKeyInfo, newQueryStatement, newQueryStatement, parseKeywordList, requiresColumnDefaultsInitialising, setDefaultTypeInfoForJDBCType, sinMethod, sqrtMethod, startsWithMethod, substringMethod, substringMethod, supportsAlterTableDropForeignKeyConstraint, supportsAnsiJoinSyntax, supportsBooleanComparison, supportsCatalogsInTableDefinitions, supportsCheckConstraintsInEndCreateStatements, supportsCheckInCreateStatements, supportsDefaultBeforeNullInColumnOptions, supportsDefaultKeywordInColumnOptions, supportsDefaultKeywordWithNotNullInColumnOptions, supportsDeferredConstraints, supportsEscapeExpressionInLikePredicate, supportsExistsSyntax, supportsForeignKeyDeleteAction, supportsForeignKeyUpdateAction, supportsNullsInCandidateKeys, supportsNullsKeywordInColumnOptions, supportsProjectionInTableReferenceJoins, supportsSchemasInTableDefinitions, supportsSettingBlobUsingSetString, supportsSettingClobUsingSetString, supportsStatementBatching, supportsStatementGetGeneratedKeys, supportsUnionSyntax, supportsUniqueConstraintsInEndCreateStatements, tanMethod, toNumericExpression, toString, toStringExpression, toStringExpression, translateMethod, trimMethod, useUnionAll |
| Methods inherited from class org.jpox.store.mapped.AbstractDatastoreAdapter |
|---|
getAdapterTime, getDatastoreMajorVersion, getDatastoreMinorVersion, getIdentifierQuoteString, getMapping, getMapping, getMapping, getMapping, getMapping, getMappingManager, getMiliseconds, getTime, isReservedKeyword, modOperator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jpox.store.rdbms.adapter.RDBMSAdapter |
|---|
closeConnection, createIndexesBeforeForeignKeys, getAddCandidateKeyStatement, getAddForeignKeyStatement, getAutoIncrementKeyword, getAutoIncrementStmt, getCatalogName, getCatalogSeparator, getCharColumnsPaddedWithSpaces, getCheckConstraintForValues, getColumns, getColumns, getConnection, getCreateIndexStatement, getDatastoreDateStatement, getDropTableStatement, getDropViewStatement, getExistingIndexes, getIdentifierQuoteString, getInsertStatementForNoColumns, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeys, getMaxIndexes, getMaxIndexNameLength, getMaxTableNameLength, getNonAnsiInnerJoinWhereClause, getNonAnsiLeftOuterJoinWhereClause, getPlaceWithOptionAfterFromClause, getPlaceWithOptionWithinJoinClauses, getRangeByLimitSelectClause, getRangeByLimitWhereClause, getRangeByRowNumberColumn, getRequiredTransactionIsolationLevel, getSchemaName, getSelectNewUUIDStmt, getSelectWithLockOption, getSequenceCreateStmt, getSequenceNextStmt, getSupportsPersistOfUnassignedChar, getSurrogateForEmptyStrings, getTables, getTransactionIsolationForSchemaCreation, getTypeInfo, getUnlimitedLengthPrecisionValue, includeOrderByColumnsInSelect, isNullEqualsEmptyStrings, isSQLKeyword, isValidPrimaryKeyType, iteratorReservedWords, iteratorTypeInfo, logConfiguration, newColumnInfo, newForeignKeyInfo, newTableExpression, requiresColumnDefaultsInitialising, supportsAlterTableDropConstraint, supportsAlterTableDropForeignKeyConstraint, supportsAnalysisMethods, supportsAnsiJoinSyntax, supportsAutoIncrementColumnTypeSpecification, supportsAutoIncrementKeysNullSpecification, supportsCatalogsInTableDefinitions, supportsCheckInCreateStatements, supportsDefaultBeforeNullInColumnOptions, supportsDefaultKeywordInColumnOptions, supportsDefaultKeywordWithNotNullInColumnOptions, supportsDeferredConstraints, supportsDistinctWithSelectForUpdate, supportsExistsSyntax, supportsForeignKeyDeleteAction, supportsForeignKeyUpdateAction, supportsLockWithSelectForUpdate, supportsNullsInCandidateKeys, supportsNullsKeywordInColumnOptions, supportsSchemasInTableDefinitions, supportsSequences, supportsSettingBlobUsingSetString, supportsSettingClobUsingSetString, supportsStatementBatching, supportsStatementGetGeneratedKeys, supportsTransactionIsolationLevel, supportsUnionSyntax, supportsUniqueConstraintsInEndCreateStatements, useUnionAll |
| Methods inherited from interface org.jpox.store.mapped.DatastoreAdapter |
|---|
getAdapterTime, getDatastoreMajorVersion, getDatastoreMinorVersion, getMapping, getMapping, getMapping, getMapping, getMappingManager, getVendorID, initialiseDatastore, isBitReallyBoolean, isIdentityFieldDataType, isReservedKeyword, isStoresLowerCaseIdentifiers, isStoresLowerCaseQuotedIdentifiers, isStoresMixedCaseIdentifiers, isStoresMixedCaseQuotedIdentifiers, isStoresUpperCaseIdentifiers, isStoresUpperCaseQuotedIdentifiers, loadDatastoreMapping, modOperator, newQueryStatement, newQueryStatement, supportsIdentityFields, supportsProjectionInTableReferenceJoins, supportsQueryFetchSize, toString |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionConversionAdapter |
|---|
toNumericExpression, toStringExpression, toStringExpression |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionOperatorAdapter |
|---|
concatOperator, getOperatorConcat |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionMethodAdapter |
|---|
absMethod, acosMethod, asinMethod, atanMethod, ceilMethod, cosMethod, endsWithMethod, expMethod, floorMethod, getCurrentDateMethod, getCurrentTimeMethod, getCurrentTimestampMethod, getDayMethod, getHourMethod, getMinuteMethod, getMonthMethod, getSecondMethod, getYearMethod, indexOfMethod, lengthMethod, logMethod, matchesMethod, sinMethod, sqrtMethod, startsWithMethod, substringMethod, substringMethod, tanMethod, translateMethod, trimMethod |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionSupportedFeaturesAdapter |
|---|
supportsBooleanComparison, supportsEscapeExpressionInLikePredicate |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionPatternAdapter |
|---|
getEscapeCharacter, getEscapedPatternExpression, getEscapePatternExpression, getPatternExpressionAnyCharacter, getPatternExpressionZeroMoreCharacters |
| Methods inherited from interface org.jpox.store.mapped.expression.ExpressionLogicSetAdapter |
|---|
cartersianProduct |
| Field Detail |
|---|
protected static final org.jpox.util.Localiser LOCALISER_POSTGIS
public static final java.lang.String HAS_MEASURE_EXTENSION_KEY
| Constructor Detail |
|---|
public PostGISAdapter(java.sql.DatabaseMetaData metadata)
| Method Detail |
|---|
public boolean supportsPrimaryKeyInCreateStatements()
supportsPrimaryKeyInCreateStatements in interface org.jpox.store.rdbms.adapter.RDBMSAdaptersupportsPrimaryKeyInCreateStatements in class org.jpox.store.rdbms.adapter.PostgreSQLAdapter
public java.lang.String getAddPrimaryKeyStatement(org.jpox.store.rdbms.key.PrimaryKey pk,
org.jpox.store.mapped.IdentifierFactory factory)
getAddPrimaryKeyStatement in interface org.jpox.store.rdbms.adapter.RDBMSAdaptergetAddPrimaryKeyStatement in class org.jpox.store.rdbms.adapter.PostgreSQLAdapter
public java.lang.String getAddColumnStatement(org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.store.rdbms.Column column)
getAddColumnStatement in interface org.jpox.store.rdbms.adapter.RDBMSAdaptergetAddColumnStatement in class org.jpox.store.rdbms.adapter.PostgreSQLAdapter
public java.lang.String getCreateTableStatement(org.jpox.store.rdbms.table.TableImpl table,
org.jpox.store.rdbms.Column[] columns,
java.util.Properties props)
getCreateTableStatement in interface org.jpox.store.rdbms.adapter.RDBMSAdaptergetCreateTableStatement in class org.jpox.store.rdbms.adapter.DatabaseAdapter
public java.lang.String getRetrieveCrsWktStatement(org.jpox.store.rdbms.table.Table table,
int srid)
SpatialRDBMSAdapter
getRetrieveCrsWktStatement in interface SpatialRDBMSAdaptertable - A tablesrid - The srid
null if not available
for the datastore
public java.lang.String getRetrieveCrsNameStatement(org.jpox.store.rdbms.table.Table table,
int srid)
SpatialRDBMSAdapter
getRetrieveCrsNameStatement in interface SpatialRDBMSAdaptertable - A tablesrid - The srid
null if not available
for the datastore
public java.lang.String getCalculateBoundsStatement(org.jpox.store.rdbms.table.Table table,
org.jpox.store.rdbms.Column column)
SpatialRDBMSAdapter
getCalculateBoundsStatement in interface SpatialRDBMSAdaptertable - The tablecolumn - The column
null if not available
for the datastorepublic boolean isGeometryColumn(org.jpox.store.rdbms.Column column)
SpatialRDBMSAdapter
isGeometryColumn in interface SpatialRDBMSAdaptercolumn - Column to check
true if the given column is geometry backed,
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||