|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDaoPersistenceContext
A dao persistence context specification.
Method Summary | ||
---|---|---|
boolean |
delete(java.lang.String table,
Entity d)
Delete an Entity. |
|
boolean |
delete(java.lang.String table,
int id)
Delete an entity of a specific ID. |
|
void |
deleteAll(java.lang.String table)
Delete all the entities of a certain class. |
|
|
getDataByID(java.lang.String table,
int id,
org.springframework.jdbc.core.simple.ParameterizedRowMapper<T> mapper)
Return an entity of a specific ID. |
|
|
getSortedList(java.lang.String table,
org.springframework.jdbc.core.simple.ParameterizedRowMapper<T> mapper)
Return all the entities of a certain class. |
|
boolean |
saveOrUpdate(Entity entity,
QueryMapper mapper)
Save or update an entity. |
Method Detail |
---|
<T extends Entity> java.util.List<T> getSortedList(java.lang.String table, org.springframework.jdbc.core.simple.ParameterizedRowMapper<T> mapper)
T
- The entity class type.table
- The entity table.mapper
- The row mapper.
<T extends Entity> T getDataByID(java.lang.String table, int id, org.springframework.jdbc.core.simple.ParameterizedRowMapper<T> mapper)
T
- The entity class type.id
- The searched id.table
- The entity table.mapper
- The row mapper.
boolean delete(java.lang.String table, int id)
id
- The searched id.table
- The entity table.
boolean delete(java.lang.String table, Entity d)
d
- The entity to delete.table
- The entity table.
boolean saveOrUpdate(Entity entity, QueryMapper mapper)
entity
- The entity to save or update.mapper
- The query mapper.
java.lang.IllegalArgumentException
- if entity is null.void deleteAll(java.lang.String table)
table
- The entity table.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |