HP Integrity NonStop J-Series User Manual

Page 352

Advertising
background image

Figure 131 New Java Interface Dialog Box

The IEmployeeDao.java file is created.

4.

Modify the IEmployeeDao.java file to declare the methods implemented in the
EmployeeDao.java

file.

After modification, the IEmployeeDao.java file must appear as:

package com.hp.empinfo.service;

import java.sql.SQLException;
import com.hp.empinfo.domain.Employee;

public interface IEmployeeDao {

public Employee getDetail(int empid)throws SQLException;
public void insertDetail(int empid, String firstname, String lastname,
int age, String email)throws SQLException;
public String deleteEmployee(int empid)throws SQLException;

352 Using Spring Transaction Manager

Advertising
This manual is related to the following products: