public class PostgresPlatform extends DatabasePlatform
Uses serial types and getGeneratedKeys.
DatabasePlatform.OnQueryOnlybasicSqlLimiter, blobDbType, booleanDbType, clobDbType, closeQuote, columnAliasPrefix, dbDefaultValue, dbEncrypt, dbIdentity, dbTypeMap, forwardOnlyHintOnFindIterate, historySupport, idInExpandedForm, likeClause, maxConstraintNameLength, maxTableNameLength, name, nativeUuidType, onQueryOnly, openQuote, persistBatchOnCascade, platformDdl, selectCountWithAlias, sqlLimiter, supportsNativeIlike, tableAliasPlaceHolder, treatEmptyStringsAsNull, useExtraTransactionOnIterateSecondaryQueries| Constructor and Description |
|---|
PostgresPlatform() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ServerConfig serverConfig)
Configure UUID Storage etc based on ServerConfig settings.
|
com.avaje.ebean.dbmigration.ddlgeneration.DdlHandler |
createDdlHandler(ServerConfig serverConfig)
Return a DdlHandler instance for generating DDL for the specific platform.
|
PlatformIdGenerator |
createSequenceIdGenerator(BackgroundExecutor be,
DataSource ds,
String seqName,
int batchSize)
Create a Postgres specific sequence IdGenerator.
|
protected String |
withForUpdate(String sql) |
close, completeSql, convertQuotedIdentifiers, getBasicSqlLimiter, getBlobDbType, getBooleanDbType, getClobDbType, getCloseQuote, getColumnAliasPrefix, getDbDefaultValue, getDbEncrypt, getDbIdentity, getDbTypeMap, getHistorySupport, getLikeClause, getMaxConstraintNameLength, getMaxTableNameLength, getName, getOnQueryOnly, getOpenQuote, getPersistBatchOnCascade, getPlatformDdl, getSqlLimiter, getTableAliasPlaceHolder, isForwardOnlyHintOnFindIterate, isIdInExpandedForm, isNativeUuidType, isSelectCountWithAlias, isSupportsNativeIlike, isTreatEmptyStringsAsNull, setColumnAliasPrefix, setDbEncrypt, setDbFalseLiteral, setDbTrueLiteral, setForwardOnlyHintOnFindIterate, setHistorySupport, setOnQueryOnly, setTableAliasPlaceHolder, tableExists, useExtraTransactionOnIterateSecondaryQueriespublic PostgresPlatform()
public void configure(ServerConfig serverConfig)
DatabasePlatformconfigure in class DatabasePlatformpublic com.avaje.ebean.dbmigration.ddlgeneration.DdlHandler createDdlHandler(ServerConfig serverConfig)
createDdlHandler in class DatabasePlatformpublic PlatformIdGenerator 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 © 2016. All rights reserved.