com.dyuproject.demos.todolist.dao
Class TodoDao

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.TodoDao

public class TodoDao
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
TodoDao()
           
 
Method Summary
 boolean create(Todo todo)
           
 boolean delete(Todo todo)
           
 Todo find(Long id)
           
 List<?> get()
           
 Todo get(Long id)
           
 List<?> getByStatus(boolean completed)
           
 List<?> getByUser(Long userId)
           
 List<?> getByUserAndStatus(Long userId, boolean completed)
           
 boolean update(Todo todo)
           
 
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

TodoDao

public TodoDao()
Method Detail

get

public List<?> get()

getByStatus

public List<?> getByStatus(boolean completed)

getByUser

public List<?> getByUser(Long userId)

getByUserAndStatus

public List<?> getByUserAndStatus(Long userId,
                                  boolean completed)

get

public Todo get(Long id)

find

public Todo find(Long id)

create

public boolean create(Todo todo)

update

public boolean update(Todo todo)

delete

public boolean delete(Todo todo)


Copyright © 2013. All Rights Reserved.