public class PostgresPkGenerator extends OraclePkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue| Modifier | Constructor and Description |
|---|---|
protected |
PostgresPkGenerator(JdbcAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createSequenceString(DbEntity ent) |
protected List<String> |
getExistingSequences(DataNode node)
Fetches a list of existing sequences that might match Cayenne generated ones.
|
protected long |
longPkFromDatabase(DataNode node,
DbEntity entity)
Generates primary key by calling Oracle sequence corresponding to the
dbEntity. |
createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, dropSequenceString, pkCacheSize, sequenceName, stripSchemaNameautoPkTableExists, dropAutoPkString, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkTableCreateString, pkUpdateString, reset, runUpdate, setPkCacheSizeprotected PostgresPkGenerator(JdbcAdapter adapter)
protected String createSequenceString(DbEntity ent)
createSequenceString in class OraclePkGeneratorprotected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception
OraclePkGeneratordbEntity. Executed SQL looks like this:
SELECT pk_table_name.nextval FROM DUAL
longPkFromDatabase in class OraclePkGeneratorExceptionprotected List<String> getExistingSequences(DataNode node) throws SQLException
getExistingSequences in class OraclePkGeneratorSQLExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.