public abstract class GenericDao<T extends Entity<ID>,ID extends Serializable> extends Object implements Dao<T,ID>
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
entityClass |
protected EntityDao |
entityDao |
| Constructor and Description |
|---|
GenericDao() |
| Modifier and Type | Method and Description |
|---|---|
T |
get(ID id)
get.
|
List<T> |
get(ID[] ids)
get.
|
Class<T> |
getEntityClass()
getEntityClass.
|
void |
remove(Collection<T> entitis)
remove.
|
void |
remove(ID id)
remove.
|
void |
remove(ID[] ids)
remove.
|
void |
remove(T entity)
remove.
|
void |
saveOrUpdate(Collection<T> entitis)
saveOrUpdate.
|
void |
saveOrUpdate(T entity)
saveOrUpdate.
|
void |
setEntityDao(EntityDao entityDao) |
protected EntityDao entityDao
public void saveOrUpdate(T entity)
DaosaveOrUpdate.
saveOrUpdate in interface Dao<T extends Entity<ID>,ID extends Serializable>entity - a T object.public void saveOrUpdate(Collection<T> entitis)
DaosaveOrUpdate.
saveOrUpdate in interface Dao<T extends Entity<ID>,ID extends Serializable>entitis - a Collection object.public void remove(Collection<T> entitis)
Daoremove.
remove in interface Dao<T extends Entity<ID>,ID extends Serializable>entitis - a Collection object.public Class<T> getEntityClass()
DaogetEntityClass.
getEntityClass in interface Dao<T extends Entity<ID>,ID extends Serializable>Class object.public void setEntityDao(EntityDao entityDao)
Copyright © 2005–2018 The Beangle Software. All rights reserved.