use of com.servoy.j2db.dataprocessing.BufferedDataSet in project servoy-client by Servoy.
the class ValuelistPropTest method setupData.
@Override
protected void setupData() throws ServoyException {
BufferedDataSet ds = new BufferedDataSet(new String[] { "pk", "test1", "test2" }, new int[] { IColumnTypes.INTEGER, IColumnTypes.TEXT, IColumnTypes.TEXT });
ds.addRow(new Object[] { Integer.valueOf(1), "value1", "valueA" });
ds.addRow(new Object[] { Integer.valueOf(2), "value2", "valueB" });
ds.addRow(new Object[] { Integer.valueOf(3), "value3", "valueC" });
ds.addRow(new Object[] { Integer.valueOf(4), "value4", "valueD" });
ds.addRow(new Object[] { Integer.valueOf(5), "value5", "valueE" });
ds.addRow(new Object[] { Integer.valueOf(6), "value6", "valueF" });
ds.addRow(new Object[] { Integer.valueOf(7), "value7", "valueG" });
ds.addRow(new Object[] { Integer.valueOf(8), "value8", "valueH" });
ds.addRow(new Object[] { Integer.valueOf(9), "value9", "valueI" });
ds.addRow(new Object[] { Integer.valueOf(10), "value10", "valueJ" });
ds.addRow(new Object[] { Integer.valueOf(11), "value11", "valueK" });
ds.addRow(new Object[] { Integer.valueOf(12), "value12", "valueL" });
ds.addRow(new Object[] { Integer.valueOf(13), "value13", "valueM" });
ds.addRow(new Object[] { Integer.valueOf(14), "value14", "valueN" });
ds.addRow(new Object[] { Integer.valueOf(15), "value15", "valueO" });
ds.addRow(new Object[] { Integer.valueOf(16), "value16", "valueP" });
ds.addRow(new Object[] { Integer.valueOf(17), "value17", "valueQ" });
ds.addRow(new Object[] { Integer.valueOf(18), "value18", "valueR" });
client.getFoundSetManager().insertToDataSource("test", ds, null, new WrappedObjectReference<String[]>(new String[] { "pk" }), true, false);
ConcurrentHashMap<String, IServer> serverProxies = new ConcurrentHashMap<String, IServer>();
serverProxies.put("_sv_inmem", DUMMY_ISERVER);
solution.setServerProxies(serverProxies);
}
Aggregations