public class MySQLPkGenerator extends JdbcPkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue| Constructor and Description |
|---|
MySQLPkGenerator()
Used by DI
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
dropAutoPkString() |
protected long |
getLongPrimaryKey(Statement statement,
String entityName) |
protected long |
longPkFromDatabase(DataNode node,
DbEntity entity)
Overrides superclass's implementation to perform locking of the primary
key lookup table.
|
protected String |
pkTableCreateString() |
protected SQLException |
processSQLException(SQLException exception,
SQLException parent)
Appends a new SQLException to the chain.
|
autoPkTableExists, createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkUpdateString, reset, runUpdate, setAdapter, setPkCacheSizeprotected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception
longPkFromDatabase in class JdbcPkGeneratorExceptionprotected SQLException processSQLException(SQLException exception, SQLException parent)
protected String dropAutoPkString()
dropAutoPkString in class JdbcPkGeneratorprotected String pkTableCreateString()
pkTableCreateString in class JdbcPkGeneratorprotected long getLongPrimaryKey(Statement statement, String entityName) throws SQLException
SQLExceptionCopyright © 2001–2021 Apache Cayenne. All rights reserved.