Class ColumnMetadata.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public ColumnMetadata.Builder name​(String name)
        Set the column name
        Parameters:
        name - column name
        Returns:
        builder instance for fluent programming
      • adapterNotes

        public ColumnMetadata.Builder adapterNotes​(String adapterNotes)
        Set the adapter notes
        Parameters:
        adapterNotes - adapter notes
        Returns:
        builder instance for fluent programming
      • type

        public ColumnMetadata.Builder type​(DataType type)
        Set the column's data type
        Parameters:
        type - data type
        Returns:
        builder instance for fluent programming
      • nullable

        public ColumnMetadata.Builder nullable​(boolean nullable)
        Define whether the column can be NULL
        Parameters:
        nullable - true if the column is allowed to be NULL
        Returns:
        builder instance for fluent programming
      • identity

        public ColumnMetadata.Builder identity​(boolean identity)
        Define whether the column support auto-incrementing
        Parameters:
        identity - true if the column is an auto-incrementing ID
        Returns:
        builder instance for fluent programming
      • defaultValue

        public ColumnMetadata.Builder defaultValue​(String defaultValue)
        Set the default value for the column
        Parameters:
        defaultValue - default value inserted when the value is not explicitly specified in the INSERT command
        Returns:
        builder instance for fluent programming
      • comment

        public ColumnMetadata.Builder comment​(String comment)
        Set the column comment
        Parameters:
        comment - description of the column
        Returns:
        builder instance for fluent programming
      • originalTypeName

        public ColumnMetadata.Builder originalTypeName​(String originalTypeName)
        Set the original type name
        Parameters:
        originalTypeName - name of the type as used in the JDBC driver of the remote data source
        Returns:
        builder instance for fluent programming