setMaxLength()

Sets the maximum length for an attribute.

Syntax

public void setMaxLength(int maxLength);
 

Parameters

maxLength
Is the maximum length to assign to the attribute.

Return values

None.

Exceptions

BusObjInvalidAttrException

Thrown if the maximum length is maxLength < 0 or maxLength > 2^31-1

See also

getMaxLength()

Copyright IBM Corp. 1997, 2003