|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.dba.JdbcPkGenerator
org.apache.cayenne.dba.mysql.MySQLPkGenerator
public class MySQLPkGenerator
| Field Summary |
|---|
| Fields inherited from class org.apache.cayenne.dba.JdbcPkGenerator |
|---|
DEFAULT_PK_CACHE_SIZE, pkCache, pkCacheSize |
| Method Summary | |
|---|---|
protected String |
dropAutoPkString()
|
protected long |
getLongPrimaryKey(Statement statement,
String entityName)
|
protected int |
getPrimaryKey(Statement statement,
String entityName)
Deprecated. since 3.0 |
protected long |
longPkFromDatabase(DataNode node,
DbEntity entity)
Overrides superclass's implementation to perform locking of the primary key lookup table. |
protected int |
pkFromDatabase(DataNode node,
DbEntity ent)
Deprecated. since 3.0 |
protected String |
pkTableCreateString()
|
protected SQLException |
processSQLException(SQLException exception,
SQLException parent)
Appends a new SQLException to the chain. |
| Methods inherited from class org.apache.cayenne.dba.JdbcPkGenerator |
|---|
autoPkTableExists, binaryPK, createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, generatePk, generatePkForDbEntity, getAdapter, getPkCacheSize, pkCreateString, pkDeleteString, pkSelectString, pkUpdateString, reset, runUpdate, setPkCacheSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected String dropAutoPkString()
dropAutoPkString in class JdbcPkGenerator
protected long longPkFromDatabase(DataNode node,
DbEntity entity)
throws Exception
longPkFromDatabase in class JdbcPkGeneratorException
protected int pkFromDatabase(DataNode node,
DbEntity ent)
throws Exception
pkFromDatabase in class JdbcPkGeneratorException
protected SQLException processSQLException(SQLException exception,
SQLException parent)
protected String pkTableCreateString()
pkTableCreateString in class JdbcPkGenerator
protected int getPrimaryKey(Statement statement,
String entityName)
throws SQLException
SQLException
protected long getLongPrimaryKey(Statement statement,
String entityName)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||