public class IngresPkGenerator extends OraclePkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue| Modifier | Constructor and Description |
|---|---|
protected |
IngresPkGenerator(JdbcAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
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, createSequenceString, dropAutoPk, dropAutoPkStatements, dropSequenceString, pkCacheSize, sequenceName, stripSchemaNameautoPkTableExists, dropAutoPkString, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkTableCreateString, pkUpdateString, reset, runUpdate, setPkCacheSizeprotected IngresPkGenerator(JdbcAdapter adapter)
protected 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
OraclePkGeneratorgetExistingSequences in class OraclePkGeneratorSQLExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.