getColumnType static method

ColumnType getColumnType(
  1. Type type
)

Implementation

static ColumnType getColumnType(Type type) {
  switch (type) {
    case String:
      return ColumnType.TEXT;
    case int:
      return ColumnType.INTEGER;
    case bool:
      return ColumnType.BOOLEAN;
    default:
      return ColumnType.TEXT;
  }
}