public class HibernateAnyTypeDao extends org.springframework.orm.hibernate.support.HibernateDaoSupport implements ExporterAnyTypeDao
Constructor and Description |
---|
HibernateAnyTypeDao() |
Modifier and Type | Method and Description |
---|---|
List |
findAllPersistentObjects()
Finds all persistent objects.
|
List<com.atlassian.bonnie.Handle> |
findAllPersistentObjectsHandles()
Finds handles for all persistent objects.
|
List<TransientHibernateHandle> |
findAllPersistentObjectsHibernateHandles()
Deprecated.
since 5.10. Use
findAllPersistentObjectsHibernateHandles(Collection) instead |
List<TransientHibernateHandle> |
findAllPersistentObjectsHibernateHandles(Collection<Class<?>> excludedInterfaces)
Finds handles for all persistent objects.
|
Object |
findByHandle(com.atlassian.bonnie.Handle handle)
Find a persistent object by its handle.
|
List |
findByIdsAndClassName(List<Long> ids,
String className)
Find a list of objects from the same persistent class.
|
Object |
getByIdAndType(long id,
Class type)
Find a persistent object by its id and type.
|
Class |
getPersistentClass() |
<T> int |
removeAllPersistentObjectsByType(Class<T> type)
Remove all of the persistent objects of the specified type
|
void |
setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects) |
@Nullable public Object findByHandle(com.atlassian.bonnie.Handle handle)
AnyTypeDao
findByHandle
in interface AnyTypeDao
handle
- the handlepublic Object getByIdAndType(long id, Class type)
AnyTypeDao
getByIdAndType
in interface AnyTypeDao
public List findByIdsAndClassName(List<Long> ids, String className)
AnyTypeDao
findByIdsAndClassName
in interface AnyTypeDao
className
- the persistent class's fully qualified class name.public List findAllPersistentObjects()
AnyTypeDao
findAllPersistentObjects
in interface AnyTypeDao
public List<com.atlassian.bonnie.Handle> findAllPersistentObjectsHandles()
AnyTypeDao
findAllPersistentObjectsHandles
in interface AnyTypeDao
@Deprecated public List<TransientHibernateHandle> findAllPersistentObjectsHibernateHandles()
findAllPersistentObjectsHibernateHandles(Collection)
insteadExporterAnyTypeDao
findAllPersistentObjectsHibernateHandles
in interface ExporterAnyTypeDao
public List<TransientHibernateHandle> findAllPersistentObjectsHibernateHandles(Collection<Class<?>> excludedInterfaces)
ExporterAnyTypeDao
findAllPersistentObjectsHibernateHandles
in interface ExporterAnyTypeDao
excludedInterfaces
- classes implementing any of the given interfaces should be excludedpublic Class getPersistentClass()
public <T> int removeAllPersistentObjectsByType(Class<T> type)
AnyTypeDao
removeAllPersistentObjectsByType
in interface AnyTypeDao
type
- the class of the persistent objects to removepublic void setExcludedClassesForRetrievingAllObjects(Set excludedClassesForRetrievingAllObjects)
Copyright © 2003–2017 Atlassian. All rights reserved.