Using MySQL specific functionality

MySQL has some features that cannot be accessed from the methods provided in the standard JDBC API. To access them, you need to cast the Statement or PreparedStatement object you are using to org.gjt.mm.mysql.Statement or org.gjt.mm.mysql.PreparedStatement respectively.

From either of these classes you can call the methods getLastInsertID() to get the value created for any AUTO_INCREMENT field, and getLongUpdateCount() to get the larger update count that MySQL can produce as a long.