@Transactional public class ContentDaoImpl<C extends ContentDescriber> extends AbstractContentHierarchyDaoImpl<C,ContentAttribute,ContentFacet>
ContentDao with support by the default Transaction Manager
AbstractContent.getLocale().Language. Country & variant
are currently practically null and place-holders in the object. In the future respect them in DB queries for extended Locale
and region based support for content.relEntitiesDelTransformerFILTER_PARENTS, FILTER_PARENTS_IMMEDIATEemct, tATTRIB_CONTENT_PARENT, ATTRIB_HIERARCHY_STARTS_LIKE| Constructor and Description |
|---|
ContentDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(C persistentObject) |
Long |
delete(Long id)
A special Delete operation on the entity that will remove the entity and related entities based on id.
|
ContentFacet |
getContentFacetInstance(C content,
String facetName) |
String |
getEntityName() |
String |
getFacetEntityName() |
String |
getNativeEntityName() |
void |
init() |
C |
load(Object id) |
C |
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.
|
C |
save(C transientObject) |
void |
unPublish(C content)
Delete published version from source.
|
constructQueryImpl, count, deleteContent, deleteFacet, deleteFacet, deleteFacet, deleteSubHierarchy, getAlterEgos, getContent, getContents, getContents, getContentsList, getFacetArray, getFacetArrayIndeces, getFacets, getFacets, getFacets, getLastChildHierarchyCode, getNameSetter, getQueryObject, getRelEntitiesDelTransformer, isExistsAsParent, loadHierarchyFlat, loadPage, makeSpaceForNodeInParent, moveParent, publish, publish, saveFacet, setContent, setNameSetter, setRelEntitiesDelTransformer, shiftHierarchy, updateAttribute, updateContentMetaAll, updateContentName, updateContentStatusconvert, delete, delete, deleteSubHierarchy, deleteSubHierarchy, filterParents, getLastChildHierarchyCode, getParents, getPersistTransformer, makeSpaceForNodeInParent, move, setPersistTransformer, verifyHierarchyconditionConstruct, ensureRowIsEntity, ensureRowIsEntity, getEntityInstance, query, query, queryPage, queryPagegetEntityManager, getNativeEntityName, paginate, setEntityManager, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertquery, queryPage@PostConstruct public void init()
public ContentFacet getContentFacetInstance(C content, String facetName)
getContentFacetInstance in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>public String getEntityName()
getEntityName in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>public String getFacetEntityName()
getFacetEntityName in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>public String getNativeEntityName()
getNativeEntityName in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>@Transactional(readOnly=false) public void delete(C persistentObject)
delete in interface GenericDao<C extends ContentDescriber>delete in class GenericDaoImpl<C extends ContentDescriber>@Transactional(readOnly=true) public C load(Object id, Class entityClass)
GenericDaoload in interface GenericDao<C extends ContentDescriber>load in class GenericDaoImpl<C extends ContentDescriber>id - as Id for EntityentityClass - as Class of entity@Transactional(readOnly=true) public C load(Object id)
load in interface GenericDao<C extends ContentDescriber>load in class GenericDaoImpl<C extends ContentDescriber>@Transactional(readOnly=false) public C save(C transientObject)
save in interface GenericDao<C extends ContentDescriber>save in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>@Transactional(readOnly=false) public Long delete(Long id)
GenericDaodelete in interface GenericDao<C extends ContentDescriber>delete in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>Long@Transactional(readOnly=true) public List query(String ql, String dialect, Object... params) throws Exception
GenericDaoImplquery in interface FreeQueryquery in class GenericDaoImpl<C extends ContentDescriber>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<C extends ContentDescriber>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
PageException@Transactional(readOnly=false) public void unPublish(C content)
ContentSourceunPublish in interface ContentSource<C extends ContentDescriber,ContentAttribute,ContentFacet>unPublish in class AbstractContentHierarchyDaoImpl<C extends ContentDescriber,ContentAttribute,ContentFacet>Copyright © 2018. All rights reserved.