Package com.illumon.iris.db.util.config
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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableInputHandler.ColumnConfig
Configuration for an input table column.static interface
TableInputHandler.ColumnConfigAttribute
An attribute for a column.static class
TableInputHandler.EnumValues
Used to create an allowable set of items to select from for the particular column.static class
TableInputHandler.TimeoutException
-
Constructor Summary
Constructors Constructor Description TableInputHandler(TableDefinition definition, String[] keys)
-
Method Summary
Modifier and Type Method Description void
addAttribute(String columnName, TableInputHandler.ColumnConfigAttribute configAttribute)
static TableInputHandler.ColumnConfig
c(String name, Class<?> type, TableInputHandler.ColumnConfigAttribute... attributes)
Creates a column configuration for a "normal" input table column.static TableInputHandler.ColumnConfig
cKey(String name, Class<?> type, TableInputHandler.ColumnConfigAttribute... attributes)
Creates a column configuration for a "key" input table column.void
clearAttributes(String columnName)
boolean
equals(Object o)
TableDefinition
getDefinition()
Object[]
getEnums(String columnName, Database db)
FieldEntry
getFieldEntry(Database db, String name)
String[]
getKeyColumnNames()
static Set<String>
getRestrictedColumnNames()
Gets the set of special column names that may not be used with input tables.boolean
hasColumn(String name)
int
hashCode()
void
init(Database db, String namespace, String tableName)
boolean
isKey(String name)
-
Constructor Details
-
Method Details
-
isKey
-
hasColumn
-
getFieldEntry
-
getEnums
-
getKeyColumnNames
-
init
-
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 nametype
- column typeattributes
- 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 nametype
- column typeattributes
- column attributes- Returns:
- column configuration
-
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
-
equals
-
hashCode
public int hashCode() -
getDefinition
-