SHARE
TWEET

UserAccountDao.java

a guest Mar 10th, 2010 61 Never
  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. }
RAW Paste Data
Top