Package com.winvector.db

Examples of com.winvector.db.TableControl


      final TreeMap<String, Object> mp = new TreeMap<String,Object>();
      mp.put("A",1.2);
      mp.put("B",5);
      mp.put("C","XXX");
      source.add(new BurstMap("test",mp));
      final TableControl tableControl = new TableControl(p,"TESTTABLE");
      tableControl.scanForDefs(sourceName,source, null);
      tableControl.buildSQLStatements();
      tableControl.createTable(dbhandle);
      final Date now = new Date();
      final long nInserted = tableControl.loadData(sourceName,now,new Random(),source, null, dbhandle);
      assertEquals(1,nInserted);
      final Statement stmt = dbhandle.conn.createStatement();
      final DBIterable it = new DBIterable(stmt,"SELECT * FROM TESTTABLE");
      long n = 0;
      for(final BurstMap row: it) {
View Full Code Here

TOP

Related Classes of com.winvector.db.TableControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.