org.jtheque.core.utils.db
Class DaoNotes

java.lang.Object
  extended by org.jtheque.core.utils.db.DaoNotes

public final class DaoNotes
extends java.lang.Object

A data access object for the notes.

Author:
Baptiste Wicht

Nested Class Summary
static class DaoNotes.NoteType
          A properties class for notes.
 
Method Summary
static DaoNotes getINSTANCE()
          Return the unique instance of the class.
 Note getNote(DaoNotes.NoteType value)
          Return the note with the specific value.
 Note[] getNotes()
          Return all the notes of the dao.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getINSTANCE

public static DaoNotes getINSTANCE()
Return the unique instance of the class.

Returns:
The singleton of DaoNotes.

getNotes

public Note[] getNotes()
Return all the notes of the dao.

Returns:
An array containing all the notes.

getNote

public Note getNote(DaoNotes.NoteType value)
Return the note with the specific value.

Parameters:
value - The value of the note we wan't
Returns:
The note with this value or null if we doesn't it.


Copyright © 2009 JTheque. All Rights Reserved.