Class StringColumn

All Implemented Interfaces:
ColumnMeta<String>

public final class StringColumn extends Column<String>
String column.
  • Field Details

  • Constructor Details

  • Method Details

    • unquoteString

      public static String unquoteString(String lexvalue) throws ParseException
      Unquotes a string that is quoted.
      Parameters:
      lexvalue - quoted string
      Throws:
      ParseException - incorrect format
    • quoteString

      public static String quoteString(String lexvalue)
      Quotes a string.
      Parameters:
      lexvalue - string for quoting
    • getDefaultValue

      public String getDefaultValue()
      Description copied from class: Column
      Returns default value.
      Specified by:
      getDefaultValue in class Column<String>
    • getLength

      public int getLength()
      Maximal length of the text field. It should not be taken into account if isMax()==true.
      Returns:
    • isMax

      public boolean isMax()
      Indicates that on the field definition MAX parameter was provided instead of the length.
      Returns:
    • setLength

      public void setLength(String length) throws ParseException
      Sets length of the text field.
      Parameters:
      length - new length
      Throws:
      ParseException - if zero or negative length is specified.
    • jdbcGetterName

      public String jdbcGetterName()
      Description copied from interface: ColumnMeta
      Name of jdbcGetter that should be used for getting column data.
      Returns:
    • getCelestaType

      public String getCelestaType()
      Description copied from interface: ColumnMeta
      Celesta data type that corresponds to the field.
      Returns:
    • getJavaClass

      public Class<?> getJavaClass()
      Description copied from interface: ColumnMeta
      Returns corresponding Java data type.
      Returns:
    • getCelestaDefault

      public String getCelestaDefault()
      Description copied from class: Column
      DEFAULT value of the field in CelestaSQL language.
      Specified by:
      getCelestaDefault in class Column<String>