|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.persistence.able.DataContainerProvider
public final class DataContainerProvider
A provider for dao. This class give acces to all daos or to specific dao with differents parameters of search.
Method Summary | |
---|---|
void |
addContainer(DataContainer<? extends Entity> container)
Add a container to manage. |
java.lang.Iterable<DataContainer<? extends Entity>> |
getAllContainers()
Return all the DAOs. |
DataContainer<? extends Entity> |
getContainerForDataType(java.lang.String dataType)
Return the DAO for a specific datatype. |
java.util.List<? extends Entity> |
getDatas(java.lang.String dataType)
Return the datas of a specific datatype. |
static DataContainerProvider |
getInstance()
Return the unique instance of the DaoProvider. |
void |
removeContainer(DataContainer<? extends Entity> container)
Remove a container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addContainer(DataContainer<? extends Entity> container)
container
- The container to add.public void removeContainer(DataContainer<? extends Entity> container)
container
- The container to remove.public static DataContainerProvider getInstance()
public java.lang.Iterable<DataContainer<? extends Entity>> getAllContainers()
public DataContainer<? extends Entity> getContainerForDataType(java.lang.String dataType)
dataType
- The data type for which we want the DAO.
null
if we don't find one.public java.util.List<? extends Entity> getDatas(java.lang.String dataType)
dataType
- The type of data we search.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |