uk.co.concise.maven.hdc.dao
Class ChartDao

java.lang.Object
  extended by uk.co.concise.maven.hdc.dao.ChartDao

public class ChartDao
extends java.lang.Object

Data accessor object for charts.

Author:
martenssonb

Constructor Summary
ChartDao()
           
 
Method Summary
 java.util.List findAll()
          Returns all charts.
 Chart findByHeading(java.lang.String heading)
          Returns a chart with a certain heading.
 void saveOrUpdateChart(Chart chart)
          Persists a chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartDao

public ChartDao()
Method Detail

saveOrUpdateChart

public void saveOrUpdateChart(Chart chart)
Persists a chart.

Parameters:
chart - chart to be persisted.

findByHeading

public Chart findByHeading(java.lang.String heading)
Returns a chart with a certain heading. Returns null if no chart was found.

Parameters:
heading - the heading of the chart to be returned.
Returns:
a chart with a certain heading.

findAll

public java.util.List findAll()
Returns all charts.

Returns:
all charts.


Copyright © 2004-2005 Concise. All Rights Reserved.