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, stripSchemaName
autoPkTableExists, dropAutoPkString, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkTableCreateString, pkUpdateString, reset, runUpdate, setPkCacheSize
protected IngresPkGenerator(JdbcAdapter adapter)
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
OraclePkGenerator
getExistingSequences
in class OraclePkGenerator
SQLException
Copyright © 2001–2018 Apache Cayenne. All rights reserved.