Package io.jmix.dynmodel.impl.db
Class PostgresqlDynamicModelDbSupport
java.lang.Object
io.jmix.dynmodel.impl.db.DynamicModelDbSupport
io.jmix.dynmodel.impl.db.DefaultDynamicModelDbSupport
io.jmix.dynmodel.impl.db.PostgresqlDynamicModelDbSupport
-
Field Summary
Fields inherited from class io.jmix.dynmodel.impl.db.DynamicModelDbSupport
DEFAULT_BYTES_LENGTH, DEFAULT_STRING_LENGTH, DEFAULT_URI_LENGTH, FALLBACK_IDENTIFIER, IDENTIFIER_HASH_LENGTH, maxIdentifierLength, metadataTools, reservedWords, STANDARD_RESERVED_WORDS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlterColumnTypeSql(String tableName, String columnName, String columnType) Returns SQL that changes the type/length of an existing column.protected Stringprotected StringgetBytesType(int length) protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected ObjecttoDbOffsetDateTime(OffsetDateTime value) protected ObjecttoDbOffsetTime(OffsetTime value) protected OffsetDateTimetoOffsetDateTime(Object dbValue) protected OffsetTimetoOffsetTime(Object dbValue) booleanuniqueConstraintExists(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String tableName, String constraintName) Checks whether the named unique constraint already exists on the given table.Methods inherited from class io.jmix.dynmodel.impl.db.DefaultDynamicModelDbSupport
getUuidSqlTypeMethods inherited from class io.jmix.dynmodel.impl.db.DynamicModelDbSupport
appendTrailingUnderscore, applyPaging, canonicalizeIdentifier, configureIdentifierRules, extractUniqueConstraintName, getAddColumnSql, getBooleanType, getCreateUniqueConstraintSql, getDropUniqueConstraintSql, getEnumIdType, getFloatType, getLength, getLikeEscapeClause, getLocalDateTimeType, getLocalTimeType, getReferenceJavaType, getSqlType, getSqlTypeByJavaType, getStringType, getUniqueDuplicateCheckPredicate, hashIdentifier, isDuplicateConstraintException, isLob, isReservedWord, normalizeGeneratedIdentifier, resolveConstraintName, setMetadataTools, shortenIdentifier, toBoolean, toByteArray, toDbBoolean, toDbLocalTime, toDbUuid, toDbValue, toEnumValue, toLocalDate, toLocalDateTime, toLocalTime, toNumber, toPropertyValue, toUnderscoreSeparated, toUuid
-
Constructor Details
-
PostgresqlDynamicModelDbSupport
public PostgresqlDynamicModelDbSupport()
-
-
Method Details
-
getAlterColumnTypeSql
Description copied from class:DynamicModelDbSupportReturns SQL that changes the type/length of an existing column.- Overrides:
getAlterColumnTypeSqlin classDynamicModelDbSupport- Parameters:
tableName- physical table namecolumnName- physical column namecolumnType- new physical column type- Returns:
- DDL statement
-
getStringLobType
- Overrides:
getStringLobTypein classDynamicModelDbSupport
-
getOffsetTimeType
- Overrides:
getOffsetTimeTypein classDynamicModelDbSupport
-
toDbOffsetTime
- Overrides:
toDbOffsetTimein classDynamicModelDbSupport
-
toOffsetTime
- Overrides:
toOffsetTimein classDynamicModelDbSupport
-
getOffsetDateTimeType
- Overrides:
getOffsetDateTimeTypein classDynamicModelDbSupport
-
toDbOffsetDateTime
- Overrides:
toDbOffsetDateTimein classDynamicModelDbSupport
-
toOffsetDateTime
- Overrides:
toOffsetDateTimein classDynamicModelDbSupport
-
getBytesType
- Overrides:
getBytesTypein classDynamicModelDbSupport
-
getDoubleType
- Overrides:
getDoubleTypein classDynamicModelDbSupport
-
getBytesLobType
- Overrides:
getBytesLobTypein classDynamicModelDbSupport
-
getUniqueConstraintViolationPattern
- Overrides:
getUniqueConstraintViolationPatternin classDynamicModelDbSupport
-
uniqueConstraintExists
public boolean uniqueConstraintExists(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String tableName, String constraintName) Description copied from class:DynamicModelDbSupportChecks whether the named unique constraint already exists on the given table.- Overrides:
uniqueConstraintExistsin classDefaultDynamicModelDbSupport- Parameters:
jdbcTemplate- JDBC template for the target storetableName- physical table nameconstraintName- physical constraint name- Returns:
trueif the constraint already exists
-
getDuplicateConstraintPattern
- Overrides:
getDuplicateConstraintPatternin classDynamicModelDbSupport
-