|
From: Roberto Lo G. <rlo...@gm...> - 2010-09-23 10:37:43
|
Here is an usage example for the dataset builder
DataSet dataSet = new DataSetBuilder()
.table("first")
.cols("id","username","password","display")
.row(1, "rlogiacco", "rlogiacco", "Roberto Lo Giacco")
.row(2, "asd", "asd")
.row(3, "asd", "asd", "asd")
.table("second")
.cols("id","display","name","surname","email")
.row()
.row();
Using varargs we can consider missing columns as null but unless we make the
interface less fluent we have no idea of the column type or at least we have
to guess the type through the Java type used to valorize it.
I see no need to describe relationships and constraints, do I miss
something?
|