org.infoglue.cms.controllers.kernel.impl.simple
Class ValidationController
java.lang.Object
org.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.ValidationController
public class ValidationController
- extends BaseController
- Author:
- Stefan Sik, ss@frovi.com
ValidationController
Provides validation functionality for valueobjects
|
Method Summary |
static boolean |
fieldValueExists(java.lang.Class objectClass,
java.lang.String fieldName,
java.lang.String checkValue,
java.lang.Integer excludeId,
java.lang.Object excludeObject)
|
BaseEntityVO |
getNewVO()
This is a method that never should be called. |
protected static void |
validateUniqueness(java.lang.String value,
java.lang.String fieldName,
java.lang.Class objectClass,
java.lang.Integer excludeId,
java.lang.Object excludedObject)
|
| 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, 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 |
ValidationController
public ValidationController()
validateUniqueness
protected static void validateUniqueness(java.lang.String value,
java.lang.String fieldName,
java.lang.Class objectClass,
java.lang.Integer excludeId,
java.lang.Object excludedObject)
throws ConstraintException,
SystemException
- Throws:
ConstraintException
SystemException
fieldValueExists
public static boolean fieldValueExists(java.lang.Class objectClass,
java.lang.String fieldName,
java.lang.String checkValue,
java.lang.Integer excludeId,
java.lang.Object excludeObject)
throws SystemException
- Throws:
SystemException
getNewVO
public BaseEntityVO getNewVO()
- This is a method that never should be called.
- Specified by:
getNewVO in class BaseController
Copyright © 2005 InfoGlue.org All Rights Reserved.