Advertisement
sergAccount

Untitled

Sep 27th, 2020
941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement