Package com.fengjing.framework.springmvc.dwr.dao.impl

Source Code of com.fengjing.framework.springmvc.dwr.dao.impl.UserDaoImpl

package com.fengjing.framework.springmvc.dwr.dao.impl;

import java.util.ArrayList;
import java.util.List;


import com.fengjing.framework.springmvc.dwr.dao.UserDao;
import com.fengjing.framework.springmvc.dwr.model.User;

public class UserDaoImpl implements UserDao{

  @Override
  public boolean checkUsernameIsExists(String username) {
    return true;
  }

  @Override
  public String getUsername(long id) {
    return "dwrservice";
  }

  @Override
  public User findUserById(long id) {
    return new User(1,"admin","1987-02-03","��������");
  }

  public List<User> listAll(){
    List<User> lists=new ArrayList<User>();
    for (int i = 1; i <= 100; i++) {
      lists.add(new User(i,"admin"+i,"1987-02-03","��������"+i));
    }
    return lists;
  }
}
TOP

Related Classes of com.fengjing.framework.springmvc.dwr.dao.impl.UserDaoImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.