Class MySQLPkGenerator
java.lang.Object
org.apache.cayenne.dba.JdbcPkGenerator
org.apache.cayenne.dba.mysql.MySQLPkGenerator
- All Implemented Interfaces:
PkGenerator
-
Field Summary
Fields inherited from class JdbcPkGenerator
adapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected longgetLongPrimaryKey(SQLLogger logger, Statement statement, String entityName) protected longlongPkFromDatabase(DataNode node, DbEntity entity) Overrides superclass's implementation to perform locking of the primary key lookup table.protected Stringprotected SQLExceptionprocessSQLException(SQLException exception, SQLException parent) Appends a new SQLException to the chain.Methods inherited from class JdbcPkGenerator
autoPkTableExists, createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkUpdateString, reset, runUpdate, setPkCacheSizeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PkGenerator
generatePk
-
Constructor Details
-
MySQLPkGenerator
-
-
Method Details
-
longPkFromDatabase
Overrides superclass's implementation to perform locking of the primary key lookup table.- Overrides:
longPkFromDatabasein classJdbcPkGenerator- Since:
- 3.0
-
processSQLException
Appends a new SQLException to the chain. If parent is null, uses the exception as the chain root. -
dropAutoPkString
- Overrides:
dropAutoPkStringin classJdbcPkGenerator
-
pkTableCreateString
- Overrides:
pkTableCreateStringin classJdbcPkGenerator
-
getLongPrimaryKey
protected long getLongPrimaryKey(SQLLogger logger, Statement statement, String entityName) throws SQLException - Throws:
SQLException- Since:
- 3.0
-