edu.vt.middleware.ed
Interface Persistable

All Known Implementing Classes:
AbstractCredentialedObject, AbstractDataObject, AbstractMutableDataObject, AbstractNamedDataObject, AbstractPassword, Account, AccountPassword, Address, AffiliationData, AlumniData, ArchivedPerson, Certificate, EmailAccount, EmailAddress, EmailPassword, EmployeeData, EmployeeDepartment, Entitlement, EntitlementData, ExternalEmailAddress, Group, Identifier, InstantMessagingId, LabeledUri, PasswordQuestion, Person, PersonName, PhoneNumber, Service, StudentData, StudentDegree, StudentMajor, SuppressedAttribute, Ticket

public interface Persistable

Interface for defining methods to assist clients in determining whether an entity bean will succeed in being persisted.

Version:
$Revision: 7145 $
Author:
Marvin S. Addison

Method Summary
 void validateProperties()
          Validates all persisted properties on an entity and ensures that they meet the criteria required for database persistence.
 

Method Detail

validateProperties

void validateProperties()
                        throws EntityValidationException
Validates all persisted properties on an entity and ensures that they meet the criteria required for database persistence. Implementers should do at least constraint checks (e.g. NOT NULL) and character column length checks.

Throws:
EntityValidationException - When input validation fails. The exception * should be constructed by implementers such that the fields that failed validation are available via EntityValidationException.getProblems().


Copyright © 2008 Virginia Tech. All Rights Reserved.