org.sakaiproject.tool.assessment.facade
Class TypeFacadeQueries

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.sakaiproject.tool.assessment.facade.TypeFacadeQueries
All Implemented Interfaces:
TypeFacadeQueriesAPI, org.springframework.beans.factory.InitializingBean

public class TypeFacadeQueries
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements TypeFacadeQueriesAPI


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
TypeFacadeQueries()
           
 
Method Summary
 ArrayList getArrayListByAuthorityDomain(String authority, String domain)
          This method return an ArrayList (Long typeId, TypeFacade typeFacade) with the specified authority and domain.
 List getFacadeItemTypes()
           
 List getFacadeListByAuthorityDomain(String authority, String domain)
           
 HashMap getHashMapByAuthorityDomain(String authority, String domain)
          This method returns a Hashmap (Long typeId, TypeFacade typeFacade) with the specified authority and domain.
 List getListByAuthorityDomain(String authority, String domain)
          This method return a List of TypeD from DB or cache (Hibernate decides) with the specified authority & domain
 org.osid.shared.Type getTypeById(Long typeId)
          This method return Type with a specified typeId, used by ItemFacade.getItemType()
 TypeFacade getTypeFacadeById(Long typeId)
          This method returns the TypeFacade with the specified typeId found in the typeFacadeMap that lives in cache.
 HashMap getTypeFacadeMap()
          get the typeFacadeMap
 void setFacadeItemTypes()
           
 void setTypeFacadeMap()
          set the typeFacadeMap for TypeFacadeQueries
 
Methods inherited from class org.springframework.orm.hibernate3.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
 

Constructor Detail

TypeFacadeQueries

public TypeFacadeQueries()
Method Detail

setTypeFacadeMap

public void setTypeFacadeMap()
set the typeFacadeMap for TypeFacadeQueries

Specified by:
setTypeFacadeMap in interface TypeFacadeQueriesAPI

getTypeFacadeMap

public HashMap getTypeFacadeMap()
get the typeFacadeMap

Specified by:
getTypeFacadeMap in interface TypeFacadeQueriesAPI

getTypeFacadeById

public TypeFacade getTypeFacadeById(Long typeId)
This method returns the TypeFacade with the specified typeId found in the typeFacadeMap that lives in cache.

Specified by:
getTypeFacadeById in interface TypeFacadeQueriesAPI
Parameters:
typeId -
Returns:
TypeFacade

getTypeById

public org.osid.shared.Type getTypeById(Long typeId)
This method return Type with a specified typeId, used by ItemFacade.getItemType()

Specified by:
getTypeById in interface TypeFacadeQueriesAPI
Parameters:
typeId -
Returns:
org.osid.shared.Type

getArrayListByAuthorityDomain

public ArrayList getArrayListByAuthorityDomain(String authority,
                                               String domain)
This method return an ArrayList (Long typeId, TypeFacade typeFacade) with the specified authority and domain.

Specified by:
getArrayListByAuthorityDomain in interface TypeFacadeQueriesAPI
Parameters:
authority -
domain -
Returns:
ArrayList

getHashMapByAuthorityDomain

public HashMap getHashMapByAuthorityDomain(String authority,
                                           String domain)
This method returns a Hashmap (Long typeId, TypeFacade typeFacade) with the specified authority and domain.

Specified by:
getHashMapByAuthorityDomain in interface TypeFacadeQueriesAPI
Parameters:
authority -
domain -
Returns:
HashMap

getListByAuthorityDomain

public List getListByAuthorityDomain(String authority,
                                     String domain)
This method return a List of TypeD from DB or cache (Hibernate decides) with the specified authority & domain

Specified by:
getListByAuthorityDomain in interface TypeFacadeQueriesAPI
Parameters:
authority -
domain -
Returns:
List

getFacadeListByAuthorityDomain

public List getFacadeListByAuthorityDomain(String authority,
                                           String domain)
Specified by:
getFacadeListByAuthorityDomain in interface TypeFacadeQueriesAPI

getFacadeItemTypes

public List getFacadeItemTypes()
Specified by:
getFacadeItemTypes in interface TypeFacadeQueriesAPI

setFacadeItemTypes

public void setFacadeItemTypes()
Specified by:
setFacadeItemTypes in interface TypeFacadeQueriesAPI


Copyright © 2005-2013 Sakai Project. All Rights Reserved.