Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.spec.service;
- import com.spec.model.UserAccount;
- import java.util.List;
- /**
- *
- * @author Admin
- */
- public interface IUserAccountService {
- // CRUD
- // C - create
- int createAccount(UserAccount user) throws Exception;
- // U - udpate
- boolean setAccount(UserAccount user) throws Exception;
- // D - delete
- void removeAccount(String userName) throws Exception;
- // R
- UserAccount getUserAccount(String userName);
- // получение объектов типа UserAccount
- List<UserAccount> getAll();
- List<UserAccount> findAccounts(Object filter);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement