public class RatingDaoImpl extends AbstractQueryableDaoImpl<Rating> implements RatingDao
em
ct, t
Constructor and Description |
---|
RatingDaoImpl() |
Modifier and Type | Method and Description |
---|---|
Long |
delete(Long id)
A special Delete operation on the entity that will remove the entity and related entities based on id.
|
void |
delete(Rating persistentObject) |
Page<Rating> |
getRatings(String topic,
PageInfo pageInfo) |
Rating |
load(Object id) |
Rating |
load(Object id,
Class entityClass)
In some situations the DAO represents an Interface or perhaps a parent of the actual Entity./
The exact type of the entity would have to be Supplied.
|
List |
query(String ql,
String dialect,
Object... params)
Execute a raw Query in the native implementation language.
|
Page |
query(String ql,
String dialect,
PageInfo pageInfo,
Object... params)
Execute a raw Query in the native implementation language.
|
Rating |
save(Rating transientObject) |
conditionConstruct, count, ensureRowIsEntity, ensureRowIsEntity, getEntityInstance, getQueryObject, query, query, queryPage, queryPage
getEntityManager, getNativeEntityName, paginate, setEntityManager, update
@Transactional(readOnly=true) public Page<Rating> getRatings(String topic, PageInfo pageInfo)
getRatings
in interface RatingDao
@Transactional(readOnly=false) public void delete(Rating persistentObject)
delete
in interface GenericDao<Rating>
delete
in class GenericDaoImpl<Rating>
@Transactional(readOnly=true) public Rating load(Object id, Class entityClass)
GenericDao
load
in interface GenericDao<Rating>
load
in class GenericDaoImpl<Rating>
id
- as Id for EntityentityClass
- as Class
of entity@Transactional(readOnly=true) public Rating load(Object id)
load
in interface GenericDao<Rating>
load
in class GenericDaoImpl<Rating>
@Transactional(readOnly=false) public Rating save(Rating transientObject)
save
in interface GenericDao<Rating>
save
in class GenericDaoImpl<Rating>
@Transactional(readOnly=false) public Long delete(Long id)
GenericDao
delete
in interface GenericDao<Rating>
delete
in class GenericDaoImpl<Rating>
Long
@Transactional(readOnly=true) public List query(String ql, String dialect, Object... params) throws Exception
GenericDaoImpl
query
in interface FreeQuery
query
in class GenericDaoImpl<Rating>
ql
- as String in native Schema languagedialect
- as String. NULL or empty or "NATIVE" implies NATIVE, "JPA" implies JPA will be used. Additional dialects can be supported but they will be implementation dependent.params
- as Query parameters to the string.
List
Exception
@Transactional(readOnly=true) public Page query(String ql, String dialect, PageInfo pageInfo, Object... params) throws Exception
GenericDaoImpl
query
in interface FreeQuery
query
in class GenericDaoImpl<Rating>
ql
- as String in native Schema languagedialect
- as String. NULL or empty or "NATIVE" implies NATIVE, "JPA" implies JPA will be used. Additional dialects can be supported but they will be implementation dependent.pageInfo
- as PageInfo
for pagination of resultparams
- as Query parameters to the string
Page
Exception
Copyright © 2018. All rights reserved.