Examples of evict()


Examples of com.sleepycat.je.dbi.CursorImpl.evict()

                     Long.toHexString(sequence));
                return false;
            }

            /* Always evict after using a file summary LN. */
            cursor.evict();
            return true;
        } finally {
            if (cursor != null) {
                cursor.close();
            }
View Full Code Here

Examples of com.sleepycat.je.dbi.CursorImpl.evict()

                                    ok = false;
                                }
                            }
                        }

                        cursor.evict();
                        status = cursor.getNext
                            (key, data, LockType.NONE, true /*forward*/,
                             false /*alreadyLatched*/,
                             null /*rangeConstraint*/);
                    }
View Full Code Here

Examples of evolaris.framework.smsservices.business.CommandEntryManager.evict()

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
   
    HttpCommandEntry httpCommandEntry = (HttpCommandEntry)commandEntry;
    checkAccessRights(req, httpCommandEntry.getGroup());
    commandEntryManager.evict(httpCommandEntry)// do not modify in this session yet (might be erroneous)

    httpCommandEntry.setSortLabel(f.getSortLabel());
    httpCommandEntry.setUrl(f.getUrl());
    httpCommandEntry.setNofEvaluatedResponseLetters(Integer.parseInt(f.getNofEvaluatedResponseLetters()))
    LOGGER.info("User " + UserManagerBase.toString(webUser) + ": http interaction entry with id: " + commandEntryId + " has been modified");
View Full Code Here

Examples of javax.cache.Cache.evict()

            if (value != null && (mode == CacheMode.WRITE_ONLY || mode == CacheMode.ALL))
                cache.put(key, ks.wrap(value, target, m, args));
            else if (mode == CacheMode.REMOVE)
                cache.remove(key);
            else if (mode == CacheMode.EVICT)
                cache.evict();
            else if (mode == CacheMode.CLEAR)
                cache.clear();

            return value;
        } catch (Throwable e) {
View Full Code Here

Examples of javax.jdo.PersistenceManager.evict()

        assertTrue("Bad source on preStore", marks[InstanceLifecycleEvent.STORE][PRE].getSource() == ba);
        assertNotNull("Not postStore event", marks[InstanceLifecycleEvent.STORE][POST]);
        assertTrue("Bad source on postStore", marks[InstanceLifecycleEvent.STORE][POST].getSource() == ba);
        pm.currentTransaction().commit();
       
        pm.evict(ba);
       
        pm.currentTransaction().begin();
        clear(nbEvent, marks);
        assertEquals("Bad f1 value" , "testInstanceLifecycleListener_1", ba.readF1());
        assertTrue("Bad event number on load: ", 2 == nbEvent[0] || 1 == nbEvent[0]);
View Full Code Here

Examples of javax.jdo.datastore.DataStoreCache.evict()

     * methods. This test makes sure that the instance
     * returned does not throw exceptions on any method.
     */
    public void testDataStoreCache() {
        DataStoreCache ds = getPMF().getDataStoreCache();
        ds.evict(pointoid);
        ds.evictAll();
        ds.evictAll(pointoidCollection);
        ds.evictAll(pointoidArray);
        ds.evictAll(PCPoint.class, true);
        ds.pin(pointoid);
View Full Code Here

Examples of javax.persistence.Cache.evict()

    Cache cache = emf.getCache();

    // Customer should be in the cache
    assertTrue(cache.contains(Customer34.class, customer.getId()));

    cache.evict(Customer34.class);

    // After clearing the cache Customer should not be in the cache
    assertFalse(cache.contains(Customer34.class, customer.getId()));
  }
View Full Code Here

Examples of net.sf.hibernate.Session.evict()

                session.delete(obj);
            } else if (SAVE_OPERATION == operation) {
                session.save(obj);
            }
            session.flush();
            session.evict(obj);
            tx.commit();
            session.close();
        } catch (HibernateException e) {
            throw new YPersistenceException("Hibernate problem: " + e.getMessage(), e);
        }
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.evict()

            em = emf.createEntityManager();
            un = em.find(getUnenhancedClass(), un.getId());
            assertTrue(getUnenhancedClass() != un.getClass());
        }

        em.evict(un);
        OpenJPAStateManager sm = (OpenJPAStateManager)
            ImplHelper.toPersistenceCapable(un, null).pcGetStateManager();

        // we only expect lazy loading to work when we can redefine classes
        // or when accessing a property-access record that OpenJPA created.
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.evict()

            pc.getComp() instanceof Proxy);
        assertTrue(
            "(TreeSet) is not pc.getComp()).comparator() instanceof ComparableComparator",
            ((TreeSet) pc.getComp())
                .comparator() instanceof ComparableComparator);
        pm.evict(pc);
        endTx(pm);

        // see if it still saves comparator after transition to hollow
        // and back
        assertTrue("pc.getComp() is not instanceof ProxyTreeSet",
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.