Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

UserAccountDao.java

By: a guest on Mar 10th, 2010  |  syntax: Java  |  size: 0.63 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package com.apress.timesheets.dao;
  2.  
  3. import java.util.List;
  4.  
  5. import com.apress.timesheets.entity.UserAccount;
  6. import com.apress.timesheets.entity.UserRole;
  7.  
  8. public interface UserAccountDao {
  9.    // Create methods
  10.    public void create(UserAccount account);
  11.    
  12.    // Read methods
  13.    public List<UserAccount> list();
  14.    public UserAccount read(Long id);
  15.    public UserAccount read(String accountName);  
  16.    public UserRole readUserRole(String roleName);
  17.    
  18.    // Update methods
  19.    public void update(UserAccount account);
  20.    
  21.    // Delete methods
  22.    public void delete(UserAccount account);
  23.    public void delete(Long id);
  24. }
clone this paste RAW Paste Data