KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > petclinic > jdbc > MySQLJdbcClinic


1 /*
2  * MySQLJdbcClinic.java
3  *
4  */

5
6 package org.springframework.samples.petclinic.jdbc;
7
8 /**
9  * MySQL JDBC implementation of the Clinic interface.
10  * Defines the identity query for MySQL.
11  *
12  * @author Juergen Hoeller
13  */

14 public class MySQLJdbcClinic extends AbstractJdbcClinic {
15
16     protected String JavaDoc getIdentityQuery() {
17         return "select last_insert_id()";
18     }
19
20 }
21
Popular Tags