Update annotation : JDBC 4 Annotations « JDK 6 « Java

Update annotation

import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
public interface UserQueries extends BaseQuery {

    // Delete user
    @Update ("DELETE Users WHERE firstName={firstName}" +
             "AND lastName={lastName}")
    int deleteUser (String firstName, String lastName);


Related examples in the same category

1.Use JDBC Chained Exception
2.JDBC Annotations
3.The SQL script for creating the Employee Table