Package io.jmix.dynmodel.impl.db
Class DefaultDynamicModelDbSupport
java.lang.Object
io.jmix.dynmodel.impl.db.DynamicModelDbSupport
io.jmix.dynmodel.impl.db.DefaultDynamicModelDbSupport
- Direct Known Subclasses:
H2DynamicModelDbSupport,HsqlDynamicModelDbSupport,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 TypeMethodDescriptionprotected StringbooleanuniqueConstraintExists(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.DynamicModelDbSupport
appendTrailingUnderscore, applyPaging, canonicalizeIdentifier, configureIdentifierRules, extractUniqueConstraintName, getAddColumnSql, getAlterColumnTypeSql, getBooleanType, getBytesLobType, getBytesType, getCreateUniqueConstraintSql, getDoubleType, getDropUniqueConstraintSql, getDuplicateConstraintPattern, getEnumIdType, getFloatType, getLength, getLikeEscapeClause, getLocalDateTimeType, getLocalTimeType, getOffsetDateTimeType, getOffsetTimeType, getReferenceJavaType, getSqlType, getSqlTypeByJavaType, getStringLobType, getStringType, getUniqueConstraintViolationPattern, getUniqueDuplicateCheckPredicate, hashIdentifier, isDuplicateConstraintException, isLob, isReservedWord, normalizeGeneratedIdentifier, resolveConstraintName, setMetadataTools, shortenIdentifier, toBoolean, toByteArray, toDbBoolean, toDbLocalTime, toDbOffsetDateTime, toDbOffsetTime, toDbUuid, toDbValue, toEnumValue, toLocalDate, toLocalDateTime, toLocalTime, toNumber, toOffsetDateTime, toOffsetTime, toPropertyValue, toUnderscoreSeparated, toUuid
-
Constructor Details
-
DefaultDynamicModelDbSupport
public DefaultDynamicModelDbSupport()
-
-
Method Details
-
getUuidSqlType
- Specified by:
getUuidSqlTypein 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 classDynamicModelDbSupport- Parameters:
jdbcTemplate- JDBC template for the target storetableName- physical table nameconstraintName- physical constraint name- Returns:
trueif the constraint already exists
-