Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.db
Interface DBObjectValidator<T extends DBObject>


public interface DBObjectValidator<T extends DBObject>

A DBObjectValidator is responsible for validating a specific type of DBObject instance.

Since:
9.0.5

Method Summary
 void validateObject(T object)
          Determines whether the specified DBObject is valid.
 void validateObject(T original, T updated)
          Determines whether the specified updated DBObject is valid.
 void validateObjectProperty(T object, java.lang.String property)
          Determines whether the specified DBObject's children of given type are valid.
 void validateObjectProperty(T original, T updated, java.lang.String property)
          Determines whether the specified DBObject's children of given type are valid for this update.
 

Method Detail

validateObject

void validateObject(T object)
                    throws ValidationException
Determines whether the specified DBObject is valid.

Parameters:
object - the DBObject to validate
Throws:
ValidationException - if the object is not valid.

validateObject

void validateObject(T original,
                    T updated)
                    throws ValidationException
Determines whether the specified updated DBObject is valid.

Parameters:
object - the original DBObject
object - the updated DBObject to validate
Throws:
ValidationException - if the object is not valid.

validateObjectProperty

void validateObjectProperty(T object,
                            java.lang.String property)
                            throws ValidationException
Determines whether the specified DBObject's children of given type are valid. This is a convinience method to perform validation to a specific child set of an object - child objects are automatically validated if the parent is validated.

Parameters:
object - the DBObject to validate
property - the property identfier for the specific property to validate.
Throws:
ValidationException - if the object is not valid.

validateObjectProperty

void validateObjectProperty(T original,
                            T updated,
                            java.lang.String property)
                            throws ValidationException
Determines whether the specified DBObject's children of given type are valid for this update. This is a convinience method to perform validation to a specific child set of an object - child objects are automatically validated if the parent is validated.

Parameters:
object - the original DBObject
object - the updated DBObject to validate
property - the property identfier for the specific property to validate.
Throws:
ValidationException - if the object is not valid.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.