org.apache.cocoon.samples.tour.beans
Class DatabaseFacade

java.lang.Object
  extended by org.apache.cocoon.samples.tour.beans.DatabaseFacade

public class DatabaseFacade
extends Object

Provides access to the "database", which is in nothing more than an in-memory data structure.

Author:
bdelacretaz@codeconsult.ch

Method Summary
static DatabaseFacade getInstance()
           
 TaskBean getTaskBeanById(int id)
          get a single TaskBean
 List getTasks()
          get our list of tasks
 String getVersion()
          version info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DatabaseFacade getInstance()

getTasks

public List getTasks()
get our list of tasks


getTaskBeanById

public TaskBean getTaskBeanById(int id)
                         throws Exception
get a single TaskBean

Throws:
Exception

getVersion

public String getVersion()
version info



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.