sergAccount

Untitled

Sep 27th, 2020
595
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.spec.service;
  7.  
  8. import com.spec.model.UserAccount;
  9. import java.util.List;
  10.  
  11. /**
  12.  *
  13.  * @author Admin
  14.  */
  15. public interface IUserAccountService {
  16.     // CRUD
  17.     // C - create
  18.     int createAccount(UserAccount user) throws Exception;  
  19.     // U - udpate
  20.     boolean setAccount(UserAccount user) throws Exception;  
  21.     // D - delete
  22.     void removeAccount(String userName) throws Exception;      
  23.     // R
  24.     UserAccount getUserAccount(String userName);
  25.     // получение объектов типа UserAccount
  26.     List<UserAccount> getAll();
  27.     List<UserAccount> findAccounts(Object filter);
  28. }
  29.  
RAW Paste Data