Dekoh platform API

dekoh.portal.fwk.persistence
Class DioCollectionQueryInterface

java.lang.Object
  extended by dekoh.portal.fwk.persistence.DioCollectionQueryInterface

public class DioCollectionQueryInterface
extends Object

This class provides DioCollection specific business methods for native queries.

Since:
Jan 25, 2007

Nested Class Summary
static class DioCollectionQueryInterface.CollectionLabel
           
static class DioCollectionQueryInterface.DioWithAccessPath
           
 
Field Summary
protected  DIOEntityManager em
           
 
Constructor Summary
DioCollectionQueryInterface(DIOEntityManager em)
           
 
Method Summary
 int getAllChildrenCount(DioCollection dioCollection)
          Gets the number of DigitalObjects in this collection.
 List getChildCollectionIds(DioCollection dioCollection)
          Gets dio ids of all collections that are part of this collection.
 int getChildrenCountOfType(Class dioEntityClass, DioCollection dioCollection)
          Gets the number of DigitalObjects of type T that are part of this collection.
 List getChildrenOfAType(Class dioEntityClass, DioCollection dioCollection)
          Gets DigitalObjects of type T that are part of this collection.
 DioCollectionQueryInterface.DioWithAccessPath getCollageDigitalObject(AccessPath collectionPath, DioCollection dioCol, Class entityClass)
           
 List getCollectionChildren(DioCollection dioCollection)
          Gets the DioCollections that are part of this collection.
 List getCollectionChildren(DioCollection dioCollection, Class collectionClass)
          Gets the DioCollections that are part of this collection.
 int getCollectionChildrenCount(DioCollection dioCollection)
          Gets the count of DioCollections that are part of this collection.
 DioCollectionQueryInterface.CollectionLabel getCollectionLabel(DioCollection dioCollection)
           
static DioCollectionQueryInterface.CollectionLabel getCollectionLabel(DioCollection dioCollection, RequestContext requestContext)
           
 Page getDigitalObjectPage(DioCollection dioCollection, DIOEntityManager em, Class cls, int pageNumber, int pageSize)
           
 List getNonCollectionChildren(DioCollection dioCollection)
          Gets the DigitalObjects (other than collections) that are part of this collection.
 int getNonCollectionChildrenCount(DioCollection dioCollection)
          Gets the count of DigitalObjects that are not of type DioCollection.
 List getNonCollectionChildrenIds(DioCollection dioCollection)
          Gets dio ids of all digital objects(except sub collections) that are part of this collection.
 Query getNonCollectionChildrenQuery(DioCollection dioCollection, DIOEntityManager em)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected final DIOEntityManager em
Constructor Detail

DioCollectionQueryInterface

public DioCollectionQueryInterface(DIOEntityManager em)
Method Detail

getAllChildrenCount

public int getAllChildrenCount(DioCollection dioCollection)
Gets the number of DigitalObjects in this collection. Since DioCollection is a DigitalObject this count includes the DioCollection that may be part of this collection. gets children count irrespective of dtype (all dtypes).

Parameters:
dioCollection -
Returns:
count

getChildrenCountOfType

public int getChildrenCountOfType(Class dioEntityClass,
                                  DioCollection dioCollection)
Gets the number of DigitalObjects of type T that are part of this collection.

Parameters:
dioEntityClass -
dioCollection -
Returns:
count

getCollectionChildrenCount

public int getCollectionChildrenCount(DioCollection dioCollection)
Gets the count of DioCollections that are part of this collection. This is equivalent to calling getChildrenCount(DioCollection.class)

Parameters:
dioCollection -
Returns:
count

getNonCollectionChildrenCount

public int getNonCollectionChildrenCount(DioCollection dioCollection)
Gets the count of DigitalObjects that are not of type DioCollection.

Parameters:
dioCollection -
Returns:
count

getNonCollectionChildrenIds

public List getNonCollectionChildrenIds(DioCollection dioCollection)
Gets dio ids of all digital objects(except sub collections) that are part of this collection.

Parameters:
dioCollection -
Returns:
list of collection ids

getChildCollectionIds

public List getChildCollectionIds(DioCollection dioCollection)
Gets dio ids of all collections that are part of this collection.

Parameters:
dioCollection -
Returns:
list of collection ids

getChildrenOfAType

public List getChildrenOfAType(Class dioEntityClass,
                               DioCollection dioCollection)
Gets DigitalObjects of type T that are part of this collection.

Parameters:
dioEntityClass -
dioCollection -
Returns:
list of T

getCollectionChildren

public List getCollectionChildren(DioCollection dioCollection)
Gets the DioCollections that are part of this collection.

Parameters:
dioCollection -
Returns:
list of DioCollections

getCollectionChildren

public List getCollectionChildren(DioCollection dioCollection,
                                  Class collectionClass)
Gets the DioCollections that are part of this collection.

Parameters:
dioCollection -
Returns:
list of DioCollections

getNonCollectionChildren

public List getNonCollectionChildren(DioCollection dioCollection)
Gets the DigitalObjects (other than collections) that are part of this collection.

Parameters:
dioCollection -
Returns:
list of DigitalObjects

getNonCollectionChildrenQuery

public Query getNonCollectionChildrenQuery(DioCollection dioCollection,
                                           DIOEntityManager em)

getCollageDigitalObject

public DioCollectionQueryInterface.DioWithAccessPath getCollageDigitalObject(AccessPath collectionPath,
                                                                             DioCollection dioCol,
                                                                             Class entityClass)

getCollectionLabel

public DioCollectionQueryInterface.CollectionLabel getCollectionLabel(DioCollection dioCollection)

getCollectionLabel

public static DioCollectionQueryInterface.CollectionLabel getCollectionLabel(DioCollection dioCollection,
                                                                             RequestContext requestContext)

getDigitalObjectPage

public Page getDigitalObjectPage(DioCollection dioCollection,
                                 DIOEntityManager em,
                                 Class cls,
                                 int pageNumber,
                                 int pageSize)

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers