Package org.apache.cayenne.dba.h2
Class H2PkGenerator
java.lang.Object
org.apache.cayenne.dba.JdbcPkGenerator
org.apache.cayenne.dba.oracle.OraclePkGenerator
org.apache.cayenne.dba.h2.H2PkGenerator
- All Implemented Interfaces:
PkGenerator
Default PK generator for H2 that uses sequences for PK generation.
- Since:
- 4.0
-
Field Summary
Fields inherited from class org.apache.cayenne.dba.JdbcPkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
protected String
selectNextValQuery
(String sequenceName) Methods inherited from class org.apache.cayenne.dba.oracle.OraclePkGenerator
createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, dropSequenceString, getExistingSequences, getSequencePrefix, longPkFromDatabase, pkCacheSize, sequenceName
Methods inherited from class org.apache.cayenne.dba.JdbcPkGenerator
autoPkTableExists, dropAutoPkString, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkTableCreateString, pkUpdateString, reset, runUpdate, setAdapter, setPkCacheSize
-
Constructor Details
-
H2PkGenerator
public H2PkGenerator()Used by DI- Since:
- 4.1
-
H2PkGenerator
-
-
Method Details
-
createSequenceString
- Overrides:
createSequenceString
in classOraclePkGenerator
-
selectNextValQuery
- Overrides:
selectNextValQuery
in classOraclePkGenerator
-
selectAllSequencesQuery
- Overrides:
selectAllSequencesQuery
in classOraclePkGenerator
-