Esempio n. 1
0
 /** Insert the method's description here. Creation date: (06.12.2000 21:59:14) */
 public void tearDown() {
   try {
     broker.clearCache();
     broker.close();
   } catch (PersistenceBrokerException e) {
   }
 }
Esempio n. 2
0
  public void testConversion() {
    int id = (int) (System.currentTimeMillis() % Integer.MAX_VALUE);
    ConversionVO vo =
        new ConversionVO(
            null, new ConversionId(new Integer(id)), null, new ConversionId(new Integer(id + 1)));
    broker.beginTransaction();
    broker.store(vo);
    broker.commitTransaction();

    Identity identity = new Identity(vo, broker);
    broker.clearCache();
    ConversionVO find_vo = (ConversionVO) broker.getObjectByIdentity(identity);
  }