Class StringParameterType

java.lang.Object
net.sf.basedb.core.ParameterType<String>
net.sf.basedb.core.StringParameterType
Direct Known Subclasses:
PasswordParameterType

public class StringParameterType extends ParameterType<String>
This class represent a parameter type that is a string. This type defines a max length for the text.
Version:
2.0
Author:
Samuel, Nicklas
Last modified
$Date: 2015-04-21 09:59:42 +0200 (ti, 21 apr 2015) $
  • Field Details

    • maxLength

      private final Integer maxLength
  • Constructor Details

    • StringParameterType

      public StringParameterType()
      Create a new string parameter type, setting the max length to 255 and nulls are allowed.
    • StringParameterType

      public StringParameterType(Integer maxLength, String defaultValue, boolean notNull)
      Create a new string parameter type.
      Parameters:
      maxLength - The maximum length of the string that is allowed or null to allow as long as possible
      defaultValue - The default value of this parameter
      notNull - FALSE if nulls values are allowed, TRUE otherwise
    • StringParameterType

      public StringParameterType(Integer maxLength, String defaultValue, boolean notNull, int multiplicity, int width, int height)
    • StringParameterType

      public StringParameterType(Integer maxLength, String defaultValue, boolean notNull, int multiplicity, int width, int height, List<String> items)
    • StringParameterType

      public StringParameterType(Integer maxLength, String defaultValue, boolean notNull, int multiplicity, int width, int height, Enumeration<String,String> items)
    • StringParameterType

      public StringParameterType(Integer maxLength, String defaultValue, boolean notNull, int multiplicity, int width, int height, Enumeration<String,String> items, boolean checkValues)
  • Method Details