Class PostgresDdl
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.PostgresDdl
-
- Direct Known Subclasses:
Postgres9Ddl
public class PostgresDdl extends PlatformDdl
Postgres specific DDL.
-
-
Constructor Summary
Constructors Constructor Description PostgresDdl(DatabasePlatform platform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTablePartition(DdlBuffer apply, String partitionMode, String partitionColumn)
String
asIdentityColumn(String columnDefn, DdlIdentity identity)
Modify and return the column definition for autoincrement or identity definition.String
dropIndex(String indexName, String tableName, boolean concurrent)
Return the drop index statement.String
setLockTimeout(int lockTimeoutSeconds)
By default this does nothing returning null / no lock timeout.boolean
suppressPrimaryKeyOnPartition()
-
Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addColumnComment, addHistoryTable, addTableComment, alterColumnBaseAttributes, alterColumnDefaultValue, alterColumnNotnull, alterColumnType, alterTableAddCheckConstraint, alterTableAddColumn, alterTableAddForeignKey, alterTableAddUniqueConstraint, alterTableDropColumn, alterTableDropConstraint, alterTableDropForeignKey, alterTableDropUniqueConstraint, configure, convert, convertDefaultValue, createCheckConstraint, createDdlHandler, createIndex, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropSequence, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, inlineTableComment, isIncludeStorageEngine, isInlineComments, isInlineForeignKeys, isInlineUniqueWhenNullable, lockTables, regenerateHistoryTriggers, tableInlineForeignKey, tableStorageEngine, unlockTables, useIdentityType, writeTableColumns
-
-
-
-
Constructor Detail
-
PostgresDdl
public PostgresDdl(DatabasePlatform platform)
-
-
Method Detail
-
setLockTimeout
public String setLockTimeout(int lockTimeoutSeconds)
Description copied from class:PlatformDdl
By default this does nothing returning null / no lock timeout.- Overrides:
setLockTimeout
in classPlatformDdl
-
suppressPrimaryKeyOnPartition
public boolean suppressPrimaryKeyOnPartition()
- Overrides:
suppressPrimaryKeyOnPartition
in classPlatformDdl
-
addTablePartition
public void addTablePartition(DdlBuffer apply, String partitionMode, String partitionColumn) throws IOException
- Overrides:
addTablePartition
in classPlatformDdl
- Throws:
IOException
-
dropIndex
public String dropIndex(String indexName, String tableName, boolean concurrent)
Description copied from class:PlatformDdl
Return the drop index statement.- Overrides:
dropIndex
in classPlatformDdl
-
asIdentityColumn
public String asIdentityColumn(String columnDefn, DdlIdentity identity)
Modify and return the column definition for autoincrement or identity definition.- Overrides:
asIdentityColumn
in classPlatformDdl
-
-