Class DbIndex.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • columns

        public DbIndex.Builder columns​(String... columns)
        Add the columns that are part of the index.
        Parameters:
        columns - The columns.
        Returns:
        This builder.
      • columns

        public DbIndex.Builder columns​(Collection<String> collection)
        Add the columns that are part of the index.
        Parameters:
        collection - The columns.
        Returns:
        This builder.
      • unique

        public DbIndex.Builder unique​(boolean unique)
        Indicates if this index is unique or not.
        Parameters:
        unique - True if it is unique, false otherwise.
        Returns:
        This builder.
      • build

        public DbIndex build()
        Description copied from interface: Builder
        Builds the final immutable instance.
        Specified by:
        build in interface Builder<DbIndex>
        Returns:
        The final immutable instance.