Package de.danet.an.util.persistentmaps

Examples of de.danet.an.util.persistentmaps.JDBCPersistentMap.clear()


  assertTrue(!testMap.isModified());
  assertTrue(testMap.size() == 0);
  testMap.setMapId("Danet");
  testMap.load();
  assertTrue(testMap.size() == 2);
  testMap.clear();
  testMap.store();
    }

    /**
     * Test storing an reloading of a map.  If (exactly) one
View Full Code Here


  map.put("INT", new Integer(1307));
  map.put("NULL", null);
  map.store();
  map.load();
  assertTrue(map.size() == 6);
  map.clear(); // Clear the map
  assertTrue(map.size() == 0)
  map.store();
  map.load();
  assertTrue(map.size() == 0)
    }
View Full Code Here

  map = (JDBCPersistentMap)i.readObject(); // Three object read
  assertTrue(map.size() == 3)
  i.close();
  map.setConnection(con);
  map.store(); // Three objects stored
  map.clear();
  assertTrue(map.size() == 0)
  map.load(); // All three objects read
  assertTrue(map.size() == 3)
    }
View Full Code Here

  testMap.setConnection(con);
  testMap.store();
  testMap.setConnection(con);
  testMap.store();
  if (secondCon != null) {
      testMap.clear();
      testMap.setConnection(secondCon);
      assertTrue(testMap.maxKeyLength() == 50);
      testMap.put("ALM", "Alex M�ller");
      testMap.store();
      testMap.clear();
View Full Code Here

      testMap.clear();
      testMap.setConnection(secondCon);
      assertTrue(testMap.maxKeyLength() == 50);
      testMap.put("ALM", "Alex M�ller");
      testMap.store();
      testMap.clear();
      assertTrue(testMap.size() == 0);
      testMap.load();
      assertTrue(testMap.size() == 1);
  }
  testMap.setConnection(null);
View Full Code Here

      testMap.store();
      testMap.load();
      assertTrue(testMap.size() == 3);
  }
  testMap.setConnection(con);
  testMap.clear();
  testMap.store();
  if (secondCon != null) {
      testMap.setConnection(secondCon);
      testMap.clear();
      testMap.store();
View Full Code Here

  testMap.setConnection(con);
  testMap.clear();
  testMap.store();
  if (secondCon != null) {
      testMap.setConnection(secondCon);
      testMap.clear();
      testMap.store();
  }
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.