Package org.apache.cayenne.dba.mysql
Class MySQLPkGenerator
java.lang.Object
org.apache.cayenne.dba.JdbcPkGenerator
org.apache.cayenne.dba.mysql.MySQLPkGenerator
- All Implemented Interfaces:
- PkGenerator
- 
Field SummaryFields inherited from class org.apache.cayenne.dba.JdbcPkGeneratoradapter, DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize, pkStartValue
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringprotected longgetLongPrimaryKey(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 org.apache.cayenne.dba.JdbcPkGeneratorautoPkTableExists, createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, generatePk, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkUpdateString, reset, runUpdate, setAdapter, setPkCacheSize
- 
Constructor Details- 
MySQLPkGeneratorpublic MySQLPkGenerator()Used by DI- Since:
- 4.1
 
 
- 
- 
Method Details- 
longPkFromDatabaseOverrides superclass's implementation to perform locking of the primary key lookup table.- Overrides:
- longPkFromDatabasein class- JdbcPkGenerator
- Throws:
- Exception
- Since:
- 3.0
 
- 
processSQLExceptionAppends a new SQLException to the chain. If parent is null, uses the exception as the chain root.
- 
dropAutoPkString- Overrides:
- dropAutoPkStringin class- JdbcPkGenerator
 
- 
pkTableCreateString- Overrides:
- pkTableCreateStringin class- JdbcPkGenerator
 
- 
getLongPrimaryKey- Throws:
- SQLException
- Since:
- 3.0
 
 
-