Class AbstractStringDataType<T extends AbstractStringDataType<T>>

  • Type Parameters:
    T - classes extended AbstractStringDataType
    All Implemented Interfaces:
    DataType
    Direct Known Subclasses:
    Char, Varchar

    public abstract class AbstractStringDataType<T extends AbstractStringDataType<T>>
    extends Object
    implements DataType
    Implements common logic for String data types.
    • Constructor Detail

      • AbstractStringDataType

        protected AbstractStringDataType​(int length,
                                         int maxLength,
                                         String name)
        Create a new common base for a string type.
        Parameters:
        length - length of the string
        maxLength - maximum length
        name - name of the type
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface DataType
        Returns:
        SQL representation of data type name
      • getLength

        public int getLength()
        Returns:
        pre-defined length for stored strings
      • self

        protected abstract T self()
        Get the generic self pointer.
        Returns:
        self pointer