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;
    }
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 + ")";
        }
       
        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 + ")"; } return null; }