com.avaje.ebean.config.dbplatform
Class PostgresPlatform

java.lang.Object
  extended by com.avaje.ebean.config.dbplatform.DatabasePlatform
      extended by com.avaje.ebean.config.dbplatform.PostgresPlatform

public class PostgresPlatform
extends DatabasePlatform

Postgres v8.3 specific platform.

No support for getGeneratedKeys.


Constructor Summary
PostgresPlatform()
           
 
Method Summary
 IdGenerator createSequenceIdGenerator(BackgroundExecutor be, DataSource ds, String seqName, int batchSize)
          Create a Postgres specific sequence IdGenerator.
 
Methods inherited from class com.avaje.ebean.config.dbplatform.DatabasePlatform
convertQuotedIdentifiers, getBlobDbType, getBooleanDbType, getCloseQuote, getDbDdlSyntax, getDbEncrypt, getDbIdentity, getDbTypeMap, getName, getOpenQuote, getSqlLimiter, isIdInExpandedForm, isTreatEmptyStringsAsNull, setDbEncrypt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresPlatform

public PostgresPlatform()
Method Detail

createSequenceIdGenerator

public IdGenerator createSequenceIdGenerator(BackgroundExecutor be,
                                             DataSource ds,
                                             String seqName,
                                             int batchSize)
Create a Postgres specific sequence IdGenerator.

Overrides:
createSequenceIdGenerator in class DatabasePlatform
Parameters:
be - the BackgroundExecutor that can be used to load the sequence if desired
ds - the DataSource
seqName - the name of the sequence
batchSize - the number of sequences that should be loaded


Copyright © 2010. All Rights Reserved.