org.jtheque.primary.dao.able
Interface IDaoSimpleDatas

All Superinterfaces:
org.jtheque.core.managers.persistence.able.JThequeDao
All Known Implementing Classes:
DaoSimpleDatas

public interface IDaoSimpleDatas
extends org.jtheque.core.managers.persistence.able.JThequeDao

A dao for simple data specification.

Author:
Baptiste Wicht

Method Summary
 void create(SimpleData data)
          Create the specified simple data.
 SimpleData createSimpleData()
          Create an empty simple data.
 boolean delete(SimpleData data)
          Delete the simple data.
 boolean exist(SimpleData data)
          Indicate if the simple data exists or not.
 SimpleData getSimpleData(int id)
          Return the simple data of the specified id.
 SimpleData getSimpleData(String title)
          Return the simple data of the specified title.
 Collection<SimpleData> getSimpleDatas()
          Return all the simple datas.
 void save(SimpleData data)
          Save the specified data.
 
Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao
addDataListener, clearAll, removeDataListener
 

Method Detail

getSimpleDatas

Collection<SimpleData> getSimpleDatas()
Return all the simple datas.

Returns:
A Collection containing all the simple datas.

getSimpleData

SimpleData getSimpleData(int id)
Return the simple data of the specified id.

Parameters:
id - The id to search.
Returns:
The simple data with the specified id.

getSimpleData

SimpleData getSimpleData(String title)
Return the simple data of the specified title.

Parameters:
title - The title to search.
Returns:
The simple data with the specified title.

exist

boolean exist(SimpleData data)
Indicate if the simple data exists or not.

Parameters:
data - The data to test for exists or not.
Returns:
true if the data exists else false.

delete

boolean delete(SimpleData data)
Delete the simple data.

Parameters:
data - The simple data to delete.
Returns:
true if the data has been deleted else false.

create

void create(SimpleData data)
Create the specified simple data.

Parameters:
data - The data to create.

save

void save(SimpleData data)
Save the specified data.

Parameters:
data - The data to save.

createSimpleData

SimpleData createSimpleData()
Create an empty simple data.

Returns:
An empty simple data.


Copyright © 2010 JTheque. All Rights Reserved.