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

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

public class LabelDao
extends java.lang.Object

Data accessor object for labels.

Author:
martenssonb

Constructor Summary
LabelDao()
           
 
Method Summary
 java.util.List findByChart(Chart chart)
          Returns all labels for a chart.
 Label findByChartAndText(Chart chart, java.lang.String text)
          Returns a label.
 void saveOrUpdateLabel(Label label)
          Persists a label or updates if it was already persisted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelDao

public LabelDao()
Method Detail

saveOrUpdateLabel

public void saveOrUpdateLabel(Label label)
Persists a label or updates if it was already persisted.

Parameters:
label - label to be persisted.

findByChartAndText

public Label findByChartAndText(Chart chart,
                                java.lang.String text)
Returns a label. Returns null if no label was found.

Parameters:
chart - the chart that the label belongs to.
text - the text that makes up the label.
Returns:
a label for a certain chart with a certain text.

findByChart

public java.util.List findByChart(Chart chart)
Returns all labels for a chart.

Parameters:
chart - the chart to return labels for.
Returns:
all labels for a chart.


Copyright © 2004-2005 Concise. All Rights Reserved.