com.ibm.websphere.bo

Interface BOInstanceValidator


  1. public interface BOInstanceValidator
The interface for BO Instance Validator service. This service provides apis to validate a BO instance.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. boolean
validate(commonj.sdo.DataObject businessObject,java.util.List diagnostics)
Do a deep validation for a BO instance.
  1. boolean
validate(commonj.sdo.DataObject businessObject,java.util.List diagnostics,java.util.Locale locale)
Do a deep validation for a BO instance.
  1. boolean
validate(commonj.sdo.DataObject businessObject,java.util.List diagnostics,java.util.Locale locale,java.util.logging.Level logLevel)
Do a deep validation for a BO instance.
  1. boolean
validateProperty(commonj.sdo.DataObject businessObject,java.lang.String propertyPath,java.util.List diagnostics)
Do a deep validation for a BO instance's property.
  1. boolean
validateProperty(commonj.sdo.DataObject businessObject,java.lang.String propertyPath,java.util.List diagnostics,java.util.Locale locale)
Do a deep validation for a BO instance's property.
  1. boolean
validatePropertyShallow(commonj.sdo.DataObject businessObject,java.lang.String propertyPath,java.util.List diagnostics)
Do a shallow validation for a BO instance's property.
  1. boolean
validatePropertyShallow(commonj.sdo.DataObject businessObject,java.lang.String propertyPath,java.util.List diagnostics,java.util.Locale locale)
Do a shallow validation for a BO instance's property.
  1. boolean
validateShallow(commonj.sdo.DataObject businessObject,java.util.List diagnostics)
Do a shallow validation for a BO instance.
  1. boolean
validateShallow(commonj.sdo.DataObject businessObject,java.util.List diagnostics,java.util.Locale locale)
Do a shallow validation for a BO instance.

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

validate

  1. boolean validate(commonj.sdo.DataObject businessObject,
  2. java.util.List diagnostics,
  3. java.util.Locale locale)
Do a deep validation for a BO instance. If a BO had children BOs, this method would validate the whole BO tree.

For example: there is a BO instance named customer.

List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);

Returns:
whether the business object is valid.

validate

  1. boolean validate(commonj.sdo.DataObject businessObject,
  2. java.util.List diagnostics,
  3. java.util.Locale locale,
  4. java.util.logging.Level logLevel)
Do a deep validation for a BO instance. If a BO had children BOs, this method would validate the whole BO tree. It will also log any errors to the console log at the requrested logging level.

For example: there is a BO instance named customer.

List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);

Returns:
whether the business object is valid.

validate

  1. boolean validate(commonj.sdo.DataObject businessObject,
  2. java.util.List diagnostics)
Do a deep validation for a BO instance. If a BO had children BOs, this method would validate the whole BO tree.

For example: there is a BO instance named customer.

List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validate(customer, diagnostics);

Returns:
whether the business object is valid.

validateShallow

  1. boolean validateShallow(commonj.sdo.DataObject businessObject,
  2. java.util.List diagnostics,
  3. java.util.Locale locale)
Do a shallow validation for a BO instance. Even if a BO had children BOs, this method would only validate the first level of the BO tree.

For example: there is a BO instance named customer.

List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateShallow(customer,diagnostics);

Returns:
whether the business object is valid.

validateShallow

  1. boolean validateShallow(commonj.sdo.DataObject businessObject,
  2. java.util.List diagnostics)
Do a shallow validation for a BO instance. Even if a BO had children BOs, this method would only validate the first level of the BO tree.

For example: there is a BO instance named customer.

List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateShallow(customer,diagnostics);

Returns:
whether the business object is valid.

validateProperty

  1. boolean validateProperty(commonj.sdo.DataObject businessObject,
  2. java.lang.String propertyPath,
  3. java.util.List diagnostics,
  4. java.util.Locale locale)
Do a deep validation for a BO instance's property.
If this property were a BO, this method would validate the whole tree from this property.
If this property were a simple type, validateProperty is same with validatePropertyShallow.

For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateProperty(customer,"address",diagnostics);

Returns:
whether the business object is valid.

validateProperty

  1. boolean validateProperty(commonj.sdo.DataObject businessObject,
  2. java.lang.String propertyPath,
  3. java.util.List diagnostics)
Do a deep validation for a BO instance's property.
If this property were a BO, this method would validate the whole tree from this property.
If this property were a simple type, validateProperty is same with validatePropertyShallow.

For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validateProperty(customer,"address",diagnostics);

Returns:
whether the business object is valid.

validatePropertyShallow

  1. boolean validatePropertyShallow( commonj.sdo.DataObject businessObject,
  2. java.lang.String propertyPath,
  3. java.util.List diagnostics,
  4. java.util.Locale locale)
Do a shallow validation for a BO instance's property.
If this property were a BO, this method would only validate the first level tree from this property.
If this property were a simple type, validateProperty is same with validatePropertyShallow.

For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validatePropertyShallow(customer,"address",diagnostics);

Returns:
whether the business object is valid.

validatePropertyShallow

  1. boolean validatePropertyShallow( commonj.sdo.DataObject businessObject,
  2. java.lang.String propertyPath,
  3. java.util.List diagnostics)
Do a shallow validation for a BO instance's property.
If this property were a BO, this method would only validate the first level tree from this property.
If this property were a simple type, validateProperty is same with validatePropertyShallow.

For example: there is a BO instance named customer, and customer has a property named "address".
List diagnostics;
BOInstanceValidator boValidator = (BOInstanceValidator) new ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean result = boValidator.validatePropertyShallow(customer,"address",diagnostics);

Returns:
whether the business object is valid.