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
public class MySQLPkGenerator
- extends JdbcPkGenerator
- Author:
- Andrus Adamchik
Methods inherited from class org.apache.cayenne.dba.JdbcPkGenerator |
autoPkTableExists, binaryPK, createAutoPk, createAutoPkStatements, dropAutoPk, dropAutoPkStatements, generatePkForDbEntity, 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 |
MySQLPkGenerator
public MySQLPkGenerator()
dropAutoPkString
protected String dropAutoPkString()
- Overrides:
dropAutoPkString
in class JdbcPkGenerator
pkFromDatabase
protected int pkFromDatabase(DataNode node,
DbEntity ent)
throws Exception
- Overrides superclass's implementation to perform locking of the primary key lookup
table.
- Overrides:
pkFromDatabase
in class JdbcPkGenerator
- Throws:
Exception
processSQLException
protected SQLException processSQLException(SQLException exception,
SQLException parent)
- Appends a new SQLException to the chain. If parent is null, uses the exception as
the chain root.
pkTableCreateString
protected String pkTableCreateString()
- Overrides:
pkTableCreateString
in class JdbcPkGenerator
getPrimaryKey
protected int getPrimaryKey(Statement statement,
String entityName)
throws SQLException
- Throws:
SQLException
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.