Class StringColumn

    • Method Detail

      • 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
      • 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: