|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao
com.atlassian.confluence.content.render.xhtml.migration.DefaultContentDao
public class DefaultContentDao
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
|---|
ONE_DAY |
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
cacheFactory |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
DefaultContentDao()
|
|
| Method Summary | |
|---|---|
ContentEntityObject |
getById(long id)
|
int |
getCountOfLatestXhtmlContent()
This is for internal use only, Do not rely on it as a public API. |
int |
getCountOfXhtmlContent()
This is for internal use only, Do not rely on it as a public API. |
int |
getCountOfXhtmlSpaceDescriptions()
This is for internal use only, Do not rely on it as a public API. |
int |
getLatestContentCount()
|
List<ContentEntityObject> |
getLatestOrderedWikiContentFromContentId(long startContentId,
int maxRows)
|
List<ContentEntityObject> |
getLatestOrderedXhtmlContentFromContentId(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API. |
List<ContentEntityObject> |
getMailEntities(int startRow,
int maxRows)
|
int |
getMailEntitiesCount()
|
List<ContentEntityObject> |
getOrderedXhtmlContentFromContentId(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API. |
Class |
getPersistentClass()
|
List<ContentEntityObject> |
getXhtmlSpaceDescriptionsFromContentId(long startContentId,
int maxRows)
This is for internal use only, Do not rely on it as a public API. |
void |
saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
This is for internal use only, Do not rely on it as a public API. |
protected void |
updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
This method overrides the default behaviour which is to get the current user from a thread local and to set the last updated time to the current time. |
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.ContentEntityObjectHibernateDao |
|---|
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findPreviousVersions, getAllCurrentEntities, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary |
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
|---|
findLatestVersionsCount, findLatestVersionsIterator, save |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public DefaultContentDao()
| Method Detail |
|---|
public ContentEntityObject getById(long id)
getById in interface ContentDaogetById in interface ContentEntityObjectDaogetById in class ContentEntityObjectHibernateDaopublic Class getPersistentClass()
getPersistentClass in interface ObjectDaogetPersistentClass in class ContentEntityObjectHibernateDaopublic int getLatestContentCount()
getLatestContentCount in interface ContentDao
public List<ContentEntityObject> getLatestOrderedWikiContentFromContentId(long startContentId,
int maxRows)
getLatestOrderedWikiContentFromContentId in interface ContentDaostartContentId - start content idmaxRows - max rows
public List<ContentEntityObject> getOrderedXhtmlContentFromContentId(long startContentId,
int maxRows)
ContentDaoThis is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
getOrderedXhtmlContentFromContentId in interface ContentDao
public List<ContentEntityObject> getLatestOrderedXhtmlContentFromContentId(long startContentId,
int maxRows)
ContentDaoThis is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
getLatestOrderedXhtmlContentFromContentId in interface ContentDaopublic int getCountOfXhtmlContent()
ContentDaoThis is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
getCountOfXhtmlContent in interface ContentDaopublic int getCountOfLatestXhtmlContent()
ContentDaoThis is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
getCountOfLatestXhtmlContent in interface ContentDaopublic void saveRawWithoutReindex(com.atlassian.core.bean.EntityObject objectToSave)
ContentDaoThis is for internal use only, Do not rely on it as a public API.
Perform a saveRaw but without performing the re-index; it is unnecessary in the context of a migration or upgrade.
saveRawWithoutReindex in interface ContentDaopublic int getMailEntitiesCount()
getMailEntitiesCount in interface ContentDao
public List<ContentEntityObject> getMailEntities(int startRow,
int maxRows)
getMailEntities in interface ContentDao
public List<ContentEntityObject> getXhtmlSpaceDescriptionsFromContentId(long startContentId,
int maxRows)
ContentDaoThis is for internal use only, Do not rely on it as a public API. This is used to retrieve batches of data during migration or upgrades.
Warning: You will want to keep maxRows as small as possible because a list of CEO can be a very memory hungry structure. A good example is the default used in content migration which is 500.
getXhtmlSpaceDescriptionsFromContentId in interface ContentDaopublic int getCountOfXhtmlSpaceDescriptions()
ContentDaoThis is for internal use only, Do not rely on it as a public API.
This is used to calculate the amount of work required when migrating or upgrading content.
getCountOfXhtmlSpaceDescriptions in interface ContentDaoprotected void updateModificationData(com.atlassian.core.bean.EntityObject objectToSave)
updateModificationData in class VersionedHibernateObjectDaoobjectToSave -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||