com.ibm.tws.objects.model.validator
Class JobDefinitionValidator

java.lang.Object
  extended bycom.ibm.tws.objects.validator.Validator
      extended bycom.ibm.tws.objects.model.validator.ModelValidator
          extended bycom.ibm.tws.objects.model.validator.JobDefinitionValidator

public class JobDefinitionValidator
extends ModelValidator

This class provides methods that can be used to validate JobDefinition, JobDefinitionHeader and JobDefinitionKey objects.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
JobDefinitionValidator(java.util.Locale locale)
          Creates a new JobDefinitionValidator, using the specified locale for error messages.
 
Method Summary
 void useShortTask()
          Tells this validator to check that the task string does not exceed 4000 characters (instead of 4095, which is the default limit).
 void validateHeader(JobDefinitionHeader jobDefinitionHeader)
          Validates a JobDefinitionHeader object.
 void validateKey(JobDefinitionKey jobDefinitionKey)
          Validates a JobDefinitionKey object.
 void validateObject(JobDefinition jobDefinition)
          Validates a JobDefinition object.
 
Methods inherited from class com.ibm.tws.objects.model.validator.ModelValidator
checkResolutionData, checkTimeRestrictions
 
Methods inherited from class com.ibm.tws.objects.validator.Validator
checkAlphabetic, checkAlphaNumeric, checkComparison, checkComparison, checkComparison, checkConstraint, checkConstraint, checkFilter, checkInstanceOf, checkInternetAddress, checkLength, checkListFilter, checkNotAllowedChars, checkNotAllowedStart, checkNotNull, checkNotNull, checkNotNull, checkNotNull, checkNotNull, checkNumeric, checkRange, checkRange, checkRange, checkStartWithAlphabetic, checkStartWithAlphaNumeric, checkStartWithNumeric, checkValue, checkValue, checkValue, getLength, getLocale, getLocalizedField, getLocalizedValue, getObjectName, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

JobDefinitionValidator

public JobDefinitionValidator(java.util.Locale locale)
Creates a new JobDefinitionValidator, using the specified locale for error messages.

Parameters:
locale - The locale requested for error messages.
Method Detail

useShortTask

public void useShortTask()
Tells this validator to check that the task string does not exceed 4000 characters (instead of 4095, which is the default limit). Call this method before invoking validateObject() if the target database is Oracle.


validateKey

public void validateKey(JobDefinitionKey jobDefinitionKey)
                 throws ValidatorException
Validates a JobDefinitionKey object.

Parameters:
jobDefinitionKey - The JobDefinitionKey object to be validated.
Throws:
ValidatorException - The object is not null and the validation has failed.

validateHeader

public void validateHeader(JobDefinitionHeader jobDefinitionHeader)
                    throws ValidatorException
Validates a JobDefinitionHeader object.

Parameters:
jobDefinitionHeader - The JobDefinitionHeader object to be validated.
Throws:
ValidatorException - The object is not null and the validation has failed.

validateObject

public void validateObject(JobDefinition jobDefinition)
                    throws ValidatorException
Validates a JobDefinition object.

Parameters:
jobDefinition - The JobDefinition object to be validated.
Throws:
ValidatorException - The object is not null and the validation has failed.


Copyright © 2005 IBM All Rights Reserved.