|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.PropertiesCategoryController
public class PropertiesCategoryController
The PropertiesCategoryController manages all actions related to persistence and querying for PropertiesCategory relationships. TODO: When we convert have Hibernate manage all of these relationships, it will pull it TODO: all back with one query and be a helluva lot faster than this basic implementation
| Method Summary | |
|---|---|
PropertiesCategory |
createWithDatabase(PropertiesCategoryVO c,
org.exolab.castor.jdo.Database db)
|
void |
delete(java.lang.Integer id)
Deletes a PropertiesCategory |
void |
deleteByCategory(java.lang.Integer categoryId)
Deletes all PropertiesCategories for a particular Category |
void |
deleteByCategory(java.lang.Integer categoryId,
org.exolab.castor.jdo.Database db)
Deletes all PropertiesCategories for a particular Category using the provided Database |
void |
deleteByProperties(java.lang.String entityName,
java.lang.Integer entityId)
Deletes all PropertiesCategories for a particular PropertiesVersion |
void |
deleteByPropertiesVersion(java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
Deletes all PropertiesCategories for a particular PropertiesVersion using the provided Database |
void |
deleteByPropertiesVersionAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId)
Deletes all properties categories with a specific attribute for a specific properties version within a single transaction |
void |
deleteByPropertiesVersionAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
Deletes all properties categories with a specific attribute for a specific properties version using the given database |
java.util.List |
findByCategory(java.lang.Integer categoryId)
Find a List of PropertiesCategories for the specific attribute and Properties Version. |
PropertiesCategoryVO |
findById(java.lang.Integer id)
Find a PropertiesCategory by it's identifier. |
java.util.List |
findByProperties(java.lang.String entityName,
java.lang.Integer entityId)
Find a List of PropertiesCategories for a Properties Version. |
java.util.List |
findByPropertiesAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId)
Find a List of PropertiesCategories for the specific attribute and Properties Version. |
java.util.List |
findByPropertiesAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
Find a List of PropertiesCategories for the specific attribute and Properties Version. |
static PropertiesCategoryController |
getController()
|
BaseEntityVO |
getNewVO()
Implemented for BaseController |
PropertiesCategoryVO |
save(PropertiesCategoryVO c)
Saves a PropertiesCategoryVO whether it is new or not. |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
|---|
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PropertiesCategoryController getController()
public PropertiesCategoryVO findById(java.lang.Integer id)
throws SystemException
id - The id of the Category to find
SystemException - If an error happens
public java.util.List findByPropertiesAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId)
throws SystemException
attribute - The attribute name of the PropertiesCategory to findversionId - The Properties Version id of the PropertiesCategory to find
SystemException - If an error happens
public java.util.List findByPropertiesAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
throws SystemException
attribute - The attribute name of the PropertiesCategory to findversionId - The Properties Version id of the PropertiesCategory to find
SystemException - If an error happens
public java.util.List findByProperties(java.lang.String entityName,
java.lang.Integer entityId)
throws SystemException
versionId - The Properties Version id of the PropertiesCategory to find
SystemException - If an error happens
public java.util.List findByCategory(java.lang.Integer categoryId)
throws SystemException
categoryId - The Category id of the PropertiesCategory to find
SystemException - If an error happens
public PropertiesCategoryVO save(PropertiesCategoryVO c)
throws SystemException
c - The PropertiesCategoryVO to save
SystemException - If an error happens
public PropertiesCategory createWithDatabase(PropertiesCategoryVO c,
org.exolab.castor.jdo.Database db)
throws SystemException,
org.exolab.castor.jdo.PersistenceException
SystemException
org.exolab.castor.jdo.PersistenceException
public void delete(java.lang.Integer id)
throws SystemException
id - The id of the PropertiesCategory to delete
SystemException - If an error happens
public void deleteByProperties(java.lang.String entityName,
java.lang.Integer entityId)
throws SystemException
versionId - The id of the PropertiesCategory to delete
SystemException - If an error happens
public void deleteByPropertiesVersion(java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
throws SystemException
versionId - The id of the PropertiesCategory to deletedb - The Database instance to use
SystemException - If an error happens
public void deleteByCategory(java.lang.Integer categoryId)
throws SystemException
categoryId - The id of the PropertiesCategory to delete
SystemException - If an error happens
public void deleteByCategory(java.lang.Integer categoryId,
org.exolab.castor.jdo.Database db)
throws SystemException
categoryId - The id of the Category to deletedb - The Database instance to use
SystemException - If an error happens
public void deleteByPropertiesVersionAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId)
throws SystemException
attribute - the desired attributeversionId - the ID of the desired properties version
SystemException - if a database error occurs
public void deleteByPropertiesVersionAttribute(java.lang.String attribute,
java.lang.String entityName,
java.lang.Integer entityId,
org.exolab.castor.jdo.Database db)
throws SystemException
attribute - the desired attributeversionId - the ID of the desired properties versiondb - the database defining the transaction context for this delete
SystemException - if a database error occurspublic BaseEntityVO getNewVO()
getNewVO in class BaseController
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||