public Value(String columnName, TypeColumn type, Object value) { this.column = new Column (columnName, type); switch(type){ case(TypeColumn.VARCHAR): this.s_value = (String) value; break; case(TypeColumn.TEXT): this.s_value = (String) value; break; case(TypeColumn.BOOLEAN): this.b_value = (bool) value; break; case(TypeColumn.LONGBLOB): this.s_value = (String) value; break; case(TypeColumn.BLOB): this.s_value = (String) value; break; case(TypeColumn.FLOAT): this.f_value = (float) value; break; case(TypeColumn.DOUBLE): this.d_value = (double) value; break; } }
public void addColumn(Column column) { this.column.Add(column); }
public void setColumn(String columnName, TypeColumn type) { this.column = new Column (columnName, type); }
public void setColumn(Column column) { this.column = column; }