org.sakaiproject.tool.assessment.facade
Class SectionFacadeQueries

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
          extended byorg.sakaiproject.tool.assessment.facade.SectionFacadeQueries
All Implemented Interfaces:
InitializingBean, SectionFacadeQueriesAPI

public class SectionFacadeQueries
extends HibernateDaoSupport
implements SectionFacadeQueriesAPI


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
SectionFacadeQueries()
           
 
Method Summary
 Long addSection(Long assessmentId)
           
 void addSectionMetaData(Long sectionId, String label, String value)
           
 void deleteSectionMetaData(Long sectionId, String label)
           
 SectionFacade get(Long sectionId)
           
 SectionData load(Long sectionId)
           
static void main(String[] args)
           
static void print(SectionFacade section)
           
 void remove(Long sectionId)
           
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, 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

SectionFacadeQueries

public SectionFacadeQueries()
Method Detail

main

public static void main(String[] args)
                 throws DataFacadeException
Throws:
DataFacadeException

print

public static void print(SectionFacade section)

addSection

public Long addSection(Long assessmentId)
Specified by:
addSection in interface SectionFacadeQueriesAPI

remove

public void remove(Long sectionId)
Specified by:
remove in interface SectionFacadeQueriesAPI

get

public SectionFacade get(Long sectionId)
Specified by:
get in interface SectionFacadeQueriesAPI

load

public SectionData load(Long sectionId)
Specified by:
load in interface SectionFacadeQueriesAPI

addSectionMetaData

public void addSectionMetaData(Long sectionId,
                               String label,
                               String value)
Specified by:
addSectionMetaData in interface SectionFacadeQueriesAPI

deleteSectionMetaData

public void deleteSectionMetaData(Long sectionId,
                                  String label)
Specified by:
deleteSectionMetaData in interface SectionFacadeQueriesAPI