Class HibernateAnyTypeDao
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate5.support.HibernateDaoSupport
-
- com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao
-
- All Implemented Interfaces:
AnyTypeDao
,ExporterAnyTypeDao
,EntityRemover
,org.springframework.beans.factory.InitializingBean
@Deprecated public class HibernateAnyTypeDao extends org.springframework.orm.hibernate5.support.HibernateDaoSupport implements ExporterAnyTypeDao, EntityRemover
Deprecated.since 7.17.0. Will be moved to internal package in the future.
-
-
Constructor Summary
Constructors Constructor Description HibernateAnyTypeDao()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List
findAllPersistentObjects()
Deprecated.Finds all persistent objects.List<Handle>
findAllPersistentObjectsHandles()
Deprecated.Finds handles for all persistent objects.List<TransientHibernateHandle>
findAllPersistentObjectsHibernateHandles(Collection<Class<?>> excludedInterfaces)
Deprecated.Finds handles for all persistent objects.@Nullable Object
findByHandle(Handle handle)
Deprecated.Find a persistent object by its handle.List
findByIdsAndClassName(List<Long> ids, String className)
Deprecated.Find a list of objects from the same persistent class.Object
getByIdAndType(long id, Class type)
Deprecated.Find a persistent object by its id and type.Class
getPersistentClass()
Deprecated.<T> int
removeAllPersistentObjectsByType(Class<T> type)
Deprecated.Remove all of the persistent objects of the specified typevoid
setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects)
Deprecated.-
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
-
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.hibernate.ExporterAnyTypeDao
findAllPersistentObjectsHibernateHandles
-
-
-
-
Method Detail
-
findByHandle
public @Nullable Object findByHandle(Handle handle)
Deprecated.Description copied from interface:AnyTypeDao
Find a persistent object by its handle.- Specified by:
findByHandle
in interfaceAnyTypeDao
- Parameters:
handle
- the handle- Returns:
- a persistent object by its handle.
-
getByIdAndType
public Object getByIdAndType(long id, Class type)
Deprecated.Description copied from interface:AnyTypeDao
Find a persistent object by its id and type.- Specified by:
getByIdAndType
in interfaceAnyTypeDao
- Returns:
- a persistent object by its handle.
-
findByIdsAndClassName
public List findByIdsAndClassName(List<Long> ids, String className)
Deprecated.Description copied from interface:AnyTypeDao
Find a list of objects from the same persistent class.- Specified by:
findByIdsAndClassName
in interfaceAnyTypeDao
className
- the persistent class's fully qualified class name.
-
findAllPersistentObjects
public List findAllPersistentObjects()
Deprecated.Description copied from interface:AnyTypeDao
Finds all persistent objects.- Specified by:
findAllPersistentObjects
in interfaceAnyTypeDao
- Returns:
- all persistent objects.
-
findAllPersistentObjectsHandles
public List<Handle> findAllPersistentObjectsHandles()
Deprecated.Description copied from interface:AnyTypeDao
Finds handles for all persistent objects.- Specified by:
findAllPersistentObjectsHandles
in interfaceAnyTypeDao
- Returns:
- handles for all persistent objects.
-
findAllPersistentObjectsHibernateHandles
public List<TransientHibernateHandle> findAllPersistentObjectsHibernateHandles(Collection<Class<?>> excludedInterfaces)
Deprecated.Description copied from interface:ExporterAnyTypeDao
Finds handles for all persistent objects.- Specified by:
findAllPersistentObjectsHibernateHandles
in interfaceExporterAnyTypeDao
- Parameters:
excludedInterfaces
- classes implementing any of the given interfaces should be excluded- Returns:
- handles for all persistent objects.
-
getPersistentClass
public Class getPersistentClass()
Deprecated.
-
removeAllPersistentObjectsByType
public <T> int removeAllPersistentObjectsByType(Class<T> type)
Deprecated.Description copied from interface:AnyTypeDao
Remove all of the persistent objects of the specified type- Specified by:
removeAllPersistentObjectsByType
in interfaceAnyTypeDao
- Specified by:
removeAllPersistentObjectsByType
in interfaceEntityRemover
- Parameters:
type
- the class of the persistent objects to remove- Returns:
- the number of objects deleted.
-
setExcludedClassesForRetrievingAllObjects
public void setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects)
Deprecated.
-
-