public class PostgresPlatform extends DatabasePlatform
Uses serial types and getGeneratedKeys.
DatabasePlatform.OnQueryOnly| Constructor and Description |
|---|
PostgresPlatform() |
| Modifier and Type | Method and Description |
|---|---|
PlatformIdGenerator |
createSequenceIdGenerator(BackgroundExecutor be,
DataSource ds,
int stepSize,
String seqName)
Create a Postgres specific sequence IdGenerator.
|
boolean |
isNativeArrayType()
So we can generate varchar[], int[], uuid[] column definitions and use the associated scalar types.
|
String |
tablePartitionInit(String tableName,
io.ebean.annotation.PartitionMode mode,
String property,
String pkey)
Return SQL using built in partition helper functions to create some initial partitions.
|
boolean |
tablePartitionsExist(Connection connection,
String table)
Return true if partitions exist for the given table.
|
completeSql, configure, convertQuotedIdentifiers, createSchemaIfNotExists, escapeLikeString, fromForUpdate, getBasicSqlLimiter, getBlobDbType, getBooleanDbType, getClobDbType, getCloseQuote, getColumnAliasPrefix, getDbDefaultValue, getDbEncrypt, getDbIdentity, getDbTypeMap, getHistorySupport, getLikeClause, getMaxConstraintNameLength, getMaxTableNameLength, getName, getOnQueryOnly, getOpenQuote, getPersistBatchOnCascade, getPlatform, getSqlLimiter, getTableAliasPlaceHolder, isDdlCommitOnCreateIndex, isForwardOnlyHintOnFindIterate, isIdInExpandedForm, isNativeUuidType, isPlatform, isSelectCountWithAlias, isSequenceBatchMode, isSupportsNativeIlike, isSupportsResultSetConcurrencyModeUpdatable, isTreatEmptyStringsAsNull, schemaExists, setColumnAliasPrefix, setDbEncrypt, setDbFalseLiteral, setDbTrueLiteral, setForwardOnlyHintOnFindIterate, setHistorySupport, setOnQueryOnly, setSequenceBatchMode, setSupportsResultSetConcurrencyModeUpdatable, setTableAliasPlaceHolder, tableExists, translate, unQuote, useExtraTransactionOnIterateSecondaryQueriespublic PostgresPlatform()
public boolean isNativeArrayType()
isNativeArrayType in class DatabasePlatformpublic PlatformIdGenerator createSequenceIdGenerator(BackgroundExecutor be, DataSource ds, int stepSize, String seqName)
createSequenceIdGenerator in class DatabasePlatformbe - the BackgroundExecutor that can be used to load the sequence if
desiredds - the DataSourcestepSize - the sequence allocation size as defined by mapping (defaults to 50)seqName - the name of the sequencepublic boolean tablePartitionsExist(Connection connection, String table) throws SQLException
DatabasePlatformtablePartitionsExist in class DatabasePlatformSQLExceptionpublic String tablePartitionInit(String tableName, io.ebean.annotation.PartitionMode mode, String property, String pkey)
tablePartitionInit in class DatabasePlatformCopyright © 2019. All rights reserved.