public class PostgresPlatform extends DatabasePlatform
Uses serial types and getGeneratedKeys.
DatabasePlatform.OnQueryOnlyblobDbType, booleanDbType, clobDbType, closeQuote, columnAliasPrefix, dbEncrypt, dbIdentity, dbTypeMap, disallowBatchOnCascade, forwardOnlyHintOnFindIterate, historySupport, idInExpandedForm, likeClause, maxConstraintNameLength, maxTableNameLength, name, nativeUuidType, onQueryOnly, openQuote, platformDdl, selectCountWithAlias, sqlLimiter, tableAliasPlaceHolder, treatEmptyStringsAsNull, useExtraTransactionOnIterateSecondaryQueries| Constructor and Description |
|---|
PostgresPlatform() |
| Modifier and Type | Method and Description |
|---|---|
com.avaje.ebean.dbmigration.ddlgeneration.DdlHandler |
createDdlHandler(ServerConfig serverConfig)
Return a DdlHandler instance for generating DDL for the specific platform.
|
IdGenerator |
createSequenceIdGenerator(BackgroundExecutor be,
DataSource ds,
String seqName,
int batchSize)
Create a Postgres specific sequence IdGenerator.
|
protected String |
withForUpdate(String sql) |
completeSql, convertQuotedIdentifiers, getBlobDbType, getBooleanDbType, getClobDbType, getCloseQuote, getColumnAliasPrefix, getDbEncrypt, getDbIdentity, getDbTypeMap, getHistorySupport, getLikeClause, getMaxConstraintNameLength, getMaxTableNameLength, getName, getOnQueryOnly, getOpenQuote, getPlatformDdl, getSqlLimiter, getTableAliasPlaceHolder, isDisallowBatchOnCascade, isForwardOnlyHintOnFindIterate, isIdInExpandedForm, isNativeUuidType, isSelectCountWithAlias, isTreatEmptyStringsAsNull, setColumnAliasPrefix, setDbEncrypt, setForwardOnlyHintOnFindIterate, setHistorySupport, setOnQueryOnly, setTableAliasPlaceHolder, useExtraTransactionOnIterateSecondaryQueriespublic PostgresPlatform()
public com.avaje.ebean.dbmigration.ddlgeneration.DdlHandler createDdlHandler(ServerConfig serverConfig)
createDdlHandler in class DatabasePlatformpublic IdGenerator createSequenceIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
createSequenceIdGenerator in class DatabasePlatformbe - the BackgroundExecutor that can be used to load the sequence if
desiredds - the DataSourceseqName - the name of the sequencebatchSize - the number of sequences that should be loadedprotected String withForUpdate(String sql)
withForUpdate in class DatabasePlatformCopyright © 2015. All rights reserved.