net.wotonomy.control
Interface EOValidation

All Known Subinterfaces:
EOEnterpriseObject
All Known Implementing Classes:
EOCustomObject, EOGenericRecord

public interface EOValidation

EOValidation provides methods for validating a operation on an object as a whole, rather than on an individual property.

Version:
$Revision: 893 $
Author:
michael@mpowers.net, $Author: cgruber $

Method Summary
 void validateForDelete()
          Validates this object for delete.
 void validateForInsert()
          Validates this object for insertion into the external store.
 void validateForSave()
          Validates this object for a commit to the external store.
 void validateForUpdate()
          Validates this object for update to the external store.
 

Method Detail

validateForDelete

void validateForDelete()
Validates this object for delete. Throws an exception if this object cannot be deleted.


validateForInsert

void validateForInsert()
Validates this object for insertion into the external store. Throws an exception if this object cannot be inserted. Validations here should be specific to insertion. Implementations may call validateForSave().


validateForSave

void validateForSave()
Validates this object for a commit to the external store. Throws an exception if this object cannot be committed. Validations here are not specific to either inserts or updates.


validateForUpdate

void validateForUpdate()
Validates this object for update to the external store. Throws an exception if this object cannot be updated. Validations here should be specific to updates. Implementations may call validateForSave().



Copyright © 2006 null. All Rights Reserved.