Package ejava.examples.cdiconfig.dao
Class ProjectsDaoImpl
- java.lang.Object
-
- ejava.examples.cdiconfig.dao.ProjectsDaoImpl
-
- All Implemented Interfaces:
ProjectsDao
public class ProjectsDaoImpl extends Object implements ProjectsDao
-
-
Field Summary
Fields Modifier and Type Field Description private EntityManager
em
-
Constructor Summary
Constructors Constructor Description ProjectsDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(Project task)
void
delete(Project task)
Project
getProject(int id)
List<Project>
getProjects(int offset, int limit)
void
setEntityManager(EntityManager em)
-
-
-
Field Detail
-
em
private EntityManager em
-
-
Method Detail
-
setEntityManager
public void setEntityManager(EntityManager em)
-
create
public void create(Project task)
- Specified by:
create
in interfaceProjectsDao
-
getProject
public Project getProject(int id)
- Specified by:
getProject
in interfaceProjectsDao
-
getProjects
public List<Project> getProjects(int offset, int limit)
- Specified by:
getProjects
in interfaceProjectsDao
-
delete
public void delete(Project task)
- Specified by:
delete
in interfaceProjectsDao
-
-