com.atlassian.confluence.core.persistence
Interface AnyTypeDao

All Known Subinterfaces:
ExporterAnyTypeDao
All Known Implementing Classes:
HibernateAnyTypeDao

public interface AnyTypeDao

DAO for loading persistent objects of various types


Method Summary
 List findAllPersistentObjects()
          Finds all persistent objects.
 List<com.atlassian.bonnie.Handle> findAllPersistentObjectsHandles()
          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.
 

Method Detail

findByHandle

Object findByHandle(com.atlassian.bonnie.Handle handle)
Find a persistent object by its handle.

Parameters:
handle - the handle
Returns:
a persistent object by its handle.

getByIdAndType

Object getByIdAndType(long id,
                      Class type)
Find a persistent object by its id and type.

Returns:
a persistent object by its handle.

findByIdsAndClassName

List findByIdsAndClassName(List<Long> ids,
                           String className)
Find a list of objects from the same persistent class.

Parameters:
className - the persistent class's fully qualified class name.

findAllPersistentObjectsHandles

List<com.atlassian.bonnie.Handle> findAllPersistentObjectsHandles()
Finds handles for all persistent objects.

Returns:
handles for all persistent objects.

findAllPersistentObjects

List findAllPersistentObjects()
Finds all persistent objects.

Returns:
all persistent objects.


Copyright © 2003-2012 Atlassian. All Rights Reserved.