@Component(value="genericDaoImpl") @Transactional public class GenericObjectDaoImpl extends AbstractQueryableDaoImpl<GenericObject> implements GenericObjectDao
emct, t| Constructor and Description |
|---|
GenericObjectDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(GenericObject persistentObject) |
Long |
delete(Long id)
A special Delete operation on the entity that will remove the entity and related entities based on id.
|
GenericObject |
load(Object id) |
GenericObject |
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.
|
GenericObject |
save(GenericObject transientObject) |
conditionConstruct, count, ensureRowIsEntity, ensureRowIsEntity, getEntityInstance, getQueryObject, query, query, queryPage, queryPagegetEntityManager, getNativeEntityName, paginate, setEntityManager, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, getEntityInstance, query, query, queryPage, queryPage@Transactional(readOnly=false) public void delete(GenericObject persistentObject)
delete in interface GenericDao<GenericObject>delete in class GenericDaoImpl<GenericObject>@Transactional(readOnly=true) public GenericObject load(Object id, Class entityClass)
GenericDaoload in interface GenericDao<GenericObject>load in class GenericDaoImpl<GenericObject>id - as Id for EntityentityClass - as Class of entity@Transactional(readOnly=true) public GenericObject load(Object id)
load in interface GenericDao<GenericObject>load in class GenericDaoImpl<GenericObject>@Transactional(readOnly=false) public GenericObject save(GenericObject transientObject)
save in interface GenericDao<GenericObject>save in class GenericDaoImpl<GenericObject>@Transactional(readOnly=false) public Long delete(Long id)
GenericDaodelete in interface GenericDao<GenericObject>delete in class GenericDaoImpl<GenericObject>Long@Transactional(readOnly=true) public List query(String ql, String dialect, Object... params) throws Exception
GenericDaoImplquery in interface FreeQueryquery in class GenericDaoImpl<GenericObject>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.
ListException@Transactional(readOnly=true) public Page query(String ql, String dialect, PageInfo pageInfo, Object... params) throws Exception
GenericDaoImplquery in interface FreeQueryquery in class GenericDaoImpl<GenericObject>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
PageExceptionCopyright © 2018. All rights reserved.