|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.co.concise.maven.hdc.dao.LabelDao
public class LabelDao
Data accessor object for labels.
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 |
---|
public LabelDao()
Method Detail |
---|
public void saveOrUpdateLabel(Label label)
label
- label to be persisted.public Label findByChartAndText(Chart chart, java.lang.String text)
chart
- the chart that the label belongs to.text
- the text that makes up the label.
public java.util.List findByChart(Chart chart)
chart
- the chart to return labels for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |