// todo add more types
private String getTypeString(int type, int length)
    {
        if (type == DataType.INT.getType()) {
            return "int";
        }
        if (type == DataType.FLOAT.getType()) {
            return "float";
        }
        if (type == DataType.DOUBLE.getType()) {
            return "double";
        }
        if (type == DataType.DATE.getType()) {
            return "date";
        }
        if (type == DataType.CHAR.getType()) {
            return "char(" + length + ")";
        }
        if (type == DataType.VARCHAR.getType()) {
            return "varchar(" + length + ")";
        }
        // todo add more types
        return null;
    }
return "varchar(" + length + ")";
}
// todo add more types
return null;
}
}
if (type == DataType.DATE.getType()) {
return "date";
}
if (type == DataType.CHAR.getType()) {
return "char(" + length + ")";
}
if (type == DataType.VARCHAR.getType()) {
return "varchar(" + length + ")";
}
// todo add more types
return null;
}
private String getTypeString(int type, int length)
{
if (type == DataType.INT.getType()) {
return "int";
}
if (type == DataType.FLOAT.getType()) {
return "float";
}
if (type == DataType.DOUBLE.getType()) {
return "double";
}
if (type == DataType.DATE.getType()) {
return "date";
}
if (type == DataType.CHAR.getType()) {
return "char(" + length + ")";
}
if (type == DataType.VARCHAR.getType()) {
return "varchar(" + length + ")";
}
// todo add more types
return null;
}