Search in sources :

Example 11 with BufferedDataSet

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);
}
Also used : IServer(com.servoy.j2db.persistence.IServer) BufferedDataSet(com.servoy.j2db.dataprocessing.BufferedDataSet) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap)

Aggregations

BufferedDataSet (com.servoy.j2db.dataprocessing.BufferedDataSet)11 JSDataSet (com.servoy.j2db.dataprocessing.JSDataSet)7 IDataSet (com.servoy.j2db.dataprocessing.IDataSet)5 ArrayList (java.util.ArrayList)5 Point (java.awt.Point)3 IServoyAwareBean (com.servoy.j2db.dataui.IServoyAwareBean)2 Column (com.servoy.j2db.persistence.Column)2 IServer (com.servoy.j2db.persistence.IServer)2 Table (com.servoy.j2db.persistence.Table)2 IComponent (com.servoy.j2db.ui.IComponent)2 SafeArrayList (com.servoy.j2db.util.SafeArrayList)2 List (java.util.List)2 Locale (java.util.Locale)2 Map (java.util.Map)2 Entry (java.util.Map.Entry)2 TreeMap (java.util.TreeMap)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)2 NativeJavaObject (org.mozilla.javascript.NativeJavaObject)2 ScriptableObject (org.mozilla.javascript.ScriptableObject)2