Class TableInputHandler

java.lang.Object
com.illumon.iris.db.util.config.TableInputHandler
All Implemented Interfaces:
Serializable

public class TableInputHandler extends Object implements Serializable
Methods for assisting in input table construction.
See Also:
  • Constructor Details

  • Method Details

    • isKey

      public boolean isKey(@NotNull String name)
    • hasColumn

      public boolean hasColumn(@NotNull String name)
    • getFieldEntry

      public FieldEntry getFieldEntry(@NotNull Database db, @NotNull String name)
    • getEnums

      public Object[] getEnums(@NotNull String columnName, @NotNull Database db)
    • getKeyColumnNames

      public String[] getKeyColumnNames()
    • init

      public void init(@NotNull Database db, @NotNull String namespace, @NotNull String tableName)
    • c

      public static TableInputHandler.ColumnConfig c(@NotNull String name, @NotNull Class<?> type, @NotNull TableInputHandler.ColumnConfigAttribute... attributes)
      Creates a column configuration for a "normal" input table column.
      Parameters:
      name - column name
      type - column type
      attributes - column attributes
      Returns:
      column configuration
    • cKey

      public static TableInputHandler.ColumnConfig cKey(@NotNull String name, @NotNull Class<?> type, @NotNull TableInputHandler.ColumnConfigAttribute... attributes)
      Creates a column configuration for a "key" input table column.
      Parameters:
      name - column name
      type - column type
      attributes - column attributes
      Returns:
      column configuration
    • getRestrictedColumnNames

      public static Set<String> getRestrictedColumnNames()
      Gets the set of special column names that may not be used with input tables.
      Returns:
      the set of special column names that may not be used with input tables.
    • addAttribute

      public void addAttribute(@NotNull String columnName, @NotNull TableInputHandler.ColumnConfigAttribute configAttribute)
    • clearAttributes

      public void clearAttributes(@NotNull String columnName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDefinition

      public TableDefinition getDefinition()