|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.movies.services.impl.CategoriesService
public final class CategoriesService
A categories service implementation.
| Field Summary |
|---|
| Fields inherited from interface org.jtheque.movies.services.able.ICategoriesService |
|---|
DATA_TYPE |
| Constructor Summary | |
|---|---|
CategoriesService()
|
|
| Method Summary | |
|---|---|
void |
addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
|
void |
clearAll()
|
void |
create(Category category)
|
boolean |
delete(Category category)
|
boolean |
exists(String category)
Test if a category exists or not. |
boolean |
existsInOtherCategory(String title,
Category category)
Test if the specified title exists in the other categories. |
Collection<Category> |
getCategories()
Return the categories of the current collection. |
Category |
getCategory(String name)
Return the category of the specified name. |
Collection<Category> |
getDatas()
|
String |
getDataType()
|
Category |
getEmptyCategory()
Return an empty category. |
Collection<Category> |
getSubCategories(Category category)
Return all the sub categories of the specified category. |
void |
save(Category category)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategoriesService()
| Method Detail |
|---|
public Collection<Category> getCategories()
ICategoriesService
getCategories in interface ICategoriesService@Transactional public boolean delete(Category category)
delete in interface org.jtheque.primary.services.able.DataService<Category>@Transactional public void create(Category category)
create in interface org.jtheque.primary.services.able.DataService<Category>@Transactional public void save(Category category)
save in interface org.jtheque.primary.services.able.DataService<Category>public boolean exists(String category)
ICategoriesService
exists in interface ICategoriesServicecategory - The category to test.
public Category getCategory(String name)
ICategoriesService
getCategory in interface ICategoriesServicename - The name of the category.
public Category getEmptyCategory()
ICategoriesService
getEmptyCategory in interface ICategoriesService
public boolean existsInOtherCategory(String title,
Category category)
ICategoriesService
existsInOtherCategory in interface ICategoriesServicetitle - The title to search for.category - The category to exclude from search.
public Collection<Category> getSubCategories(Category category)
ICategoriesService
getSubCategories in interface ICategoriesServicecategory - The categories to get the child for.
public Collection<Category> getDatas()
getDatas in interface org.jtheque.core.managers.persistence.able.DataContainer<Category>public void addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
addDataListener in interface org.jtheque.core.managers.persistence.able.DataContainer<Category>public String getDataType()
getDataType in interface org.jtheque.core.managers.persistence.able.DataContainer<Category>@Transactional public void clearAll()
clearAll in interface org.jtheque.core.managers.persistence.able.DataContainer<Category>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||