public class MySQLPkGenerator extends JdbcPkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue
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, setPkCacheSize
protected String dropAutoPkString()
dropAutoPkString
in class JdbcPkGenerator
protected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception
longPkFromDatabase
in class JdbcPkGenerator
Exception
protected SQLException processSQLException(SQLException exception, SQLException parent)
protected String pkTableCreateString()
pkTableCreateString
in class JdbcPkGenerator
protected long getLongPrimaryKey(Statement statement, String entityName) throws SQLException
SQLException
Copyright © 2001–2015 Apache Cayenne. All rights reserved.