com.dyuproject.demos.todolist.dao
Class UserDao

java.lang.Object
  extended by com.dyuproject.ext.jpa.DefaultDao
      extended by com.dyuproject.demos.todolist.dao.AbstractDao
          extended by com.dyuproject.demos.todolist.dao.UserDao

public class UserDao
extends AbstractDao

Author:
David Yu

Field Summary
 
Fields inherited from class com.dyuproject.demos.todolist.dao.AbstractDao
CONSTRAINT_VIOLATION
 
Fields inherited from class com.dyuproject.ext.jpa.DefaultDao
_entityManagerManager
 
Constructor Summary
UserDao()
           
 
Method Summary
 boolean create(User user)
           
 boolean delete(User user)
           
 User find(Long id)
           
 List<?> get()
           
 User get(Long id)
           
 User get(String username)
           
 User get(String username, String password)
           
 boolean saveOrUpdate(User user)
           
 boolean update(User user)
           
 
Methods inherited from class com.dyuproject.demos.todolist.dao.AbstractDao
getCurrentFeedback, setCurrentFeedback
 
Methods inherited from class com.dyuproject.ext.jpa.DefaultDao
createNamedQuery, createNamedQuery, createQuery, createQuery, find, merge, persist, remove, setEntityManagerManager, setEntityManagerManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDao

public UserDao()
Method Detail

get

public User get(String username,
                String password)

get

public User get(String username)

get

public List<?> get()

get

public User get(Long id)

find

public User find(Long id)

create

public boolean create(User user)

update

public boolean update(User user)

delete

public boolean delete(User user)

saveOrUpdate

public boolean saveOrUpdate(User user)


Copyright © 2013. All Rights Reserved.