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, stripSchemaName
autoPkTableExists, dropAutoPkString, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkTableCreateString, pkUpdateString, reset, runUpdate, setPkCacheSize
protected PostgresPkGenerator(JdbcAdapter adapter)
protected String createSequenceString(DbEntity ent)
createSequenceString
in class OraclePkGenerator
protected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception
OraclePkGenerator
dbEntity
. Executed SQL looks like this:
SELECT pk_table_name.nextval FROM DUAL
longPkFromDatabase
in class OraclePkGenerator
Exception
protected List<String> getExistingSequences(DataNode node) throws SQLException
getExistingSequences
in class OraclePkGenerator
SQLException
Copyright © 2001–2014 Apache Cayenne. All rights reserved.