|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BOInstanceValidator
The interface for BO Instance Validator service. This service provides apis to validate a BO instance.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
boolean |
validate(commonj.sdo.DataObject businessObject,
java.util.List diagnostics)
Do a deep validation for a BO instance. |
boolean |
validate(commonj.sdo.DataObject businessObject,
java.util.List diagnostics,
java.util.Locale locale)
Do a deep validation for a BO instance. |
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. |
boolean |
validateProperty(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics)
Do a deep validation for a BO instance's property. |
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. |
boolean |
validatePropertyShallow(commonj.sdo.DataObject businessObject,
java.lang.String propertyPath,
java.util.List diagnostics)
Do a shallow validation for a BO instance's property. |
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. |
boolean |
validateShallow(commonj.sdo.DataObject businessObject,
java.util.List diagnostics)
Do a shallow validation for a BO instance. |
boolean |
validateShallow(commonj.sdo.DataObject businessObject,
java.util.List diagnostics,
java.util.Locale locale)
Do a shallow validation for a BO instance. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
boolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale)
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);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnostics
boolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale, java.util.logging.Level logLevel)
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);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnosticslogLevel:
- The logging level at which to log the errors
boolean validate(commonj.sdo.DataObject businessObject, java.util.List diagnostics)
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);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be produced
boolean validateShallow(commonj.sdo.DataObject businessObject, java.util.List diagnostics, java.util.Locale locale)
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);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnostics
boolean validateShallow(commonj.sdo.DataObject businessObject, java.util.List diagnostics)
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);
businessObject:
- The Business Object to be validateddiagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be produced
boolean validateProperty(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics, java.util.Locale locale)
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);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnostics
boolean validateProperty(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics)
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);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be produced
boolean validatePropertyShallow(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics, java.util.Locale locale)
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);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be producedlocale:
- The locale in which to report the diagnostics
boolean validatePropertyShallow(commonj.sdo.DataObject businessObject, java.lang.String propertyPath, java.util.List diagnostics)
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);
businessObject:
- The Business Object to be validated.propertyPath:
- The property path of the business object.diagnostics:
- diagnostics a place to accumulate diagnostics; if it's null
, no diagnostics should be produced
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |