⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountoperatewebservice.java

📁 SOA
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.sysu.service;import com.sysu.dao.AccountFacadeRemote;import com.sysu.pojo.Account;import java.util.List;import javax.ejb.EJB;import javax.jws.Oneway;import javax.jws.WebMethod;import javax.jws.WebParam;import javax.jws.WebService;import javax.ejb.Stateless;/** * * @author Levi Wong */@WebService()@Stateless()public class AccountOperateWebService {    @EJB    private AccountFacadeRemote ejbRef;    // Add business logic below. (Right-click in editor and choose    // "Web Service > Add Operation"    @WebMethod(operationName = "create")    @Oneway    public void create(@WebParam(name = "account")    Account account) {        ejbRef.create(account);    }    @WebMethod(operationName = "edit")    @Oneway    public void edit(@WebParam(name = "account")    Account account) {        ejbRef.edit(account);    }    @WebMethod(operationName = "remove")    @Oneway    public void remove(@WebParam(name = "account")    Account account) {        ejbRef.remove(account);    }    @WebMethod(operationName = "find")    public Account find(@WebParam(name = "id")    Object id) {        return ejbRef.find(id);    }    @WebMethod(operationName = "findAll")    public List<Account> findAll() {        return ejbRef.findAll();    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -