Class IntegerParameterType

java.lang.Object
net.sf.basedb.core.ParameterType<Integer>
net.sf.basedb.core.IntegerParameterType

public class IntegerParameterType
extends ParameterType<Integer>
This class represent a parameter type that is an integer. This type defines a lower limit and an upper limit for the range of allowed values.
Version:
2.0
Author:
Samuel, Nicklas
Last modified
$Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
  • Field Details

    • lowerLimit

      private final Integer lowerLimit
      The lower limit of the parameter.
    • upperLimit

      private final Integer upperLimit
      The upper limit of the parameter.
  • Constructor Details

    • IntegerParameterType

      public IntegerParameterType()
      Create a new integer parameter type, without any limits and allowing null values.
    • IntegerParameterType

      public IntegerParameterType​(Integer lowerLimit, Integer upperLimit, Integer defaultValue, boolean notNull)
      Create a new integer parameter type.
      Parameters:
      lowerLimit - The lowest allowed value, or null to have no limit
      upperLimit - The highest allowed value, or null to have no limit
      defaultValue - The default value for this parameter
      notNull - FALSE if nulls values are allowed, TRUE otherwise
    • IntegerParameterType

      public IntegerParameterType​(Integer lowerLimit, Integer upperLimit, Integer defaultValue, boolean notNull, int multiplicity, int width, int height, List<Integer> items)
  • Method Details