public void removeAll(Class<?> cls, boolean subclasses) { if (_cache == null) return; try { _cache.removeAll(cls, subclasses); } catch (RuntimeException re) { throw translate(re); } }
public void removeAll(Class cls, boolean subclasses) { if (_cache == null) return; try { _cache.removeAll(cls, subclasses); } catch (RuntimeException re) { throw translate(re); } }
public void removeAll(Class<?> cls, boolean subclasses) { if (_cache == null) return; try { _cache.removeAll(cls, subclasses); } catch (RuntimeException re) { throw translate(re); } }
public BitSet removeAll(Collection<Object> oids) { if (_cache == null) return EMPTY_BITSET; try { return _cache.removeAll(oids); } catch (RuntimeException re) { throw translate(re); } }
public void removeAll(Class<?> cls, boolean subclasses) { if (_cache == null) return; try { _cache.removeAll(cls, subclasses); } catch (RuntimeException re) { throw translate(re); } }
public BitSet removeAll(Collection<Object> oids) { if (_cache == null) return EMPTY_BITSET; try { return _cache.removeAll(oids); } catch (RuntimeException re) { throw translate(re); } }
public BitSet removeAll(Collection<Object> oids) { if (_cache == null) return EMPTY_BITSET; try { return _cache.removeAll(oids); } catch (RuntimeException re) { throw translate(re); } }
public BitSet removeAll(Collection<Object> oids) { if (_cache == null) return EMPTY_BITSET; try { return _cache.removeAll(oids); } catch (RuntimeException re) { throw translate(re); } }
public BitSet removeAll(Collection oids) { if (_cache == null) return EMPTY_BITSET; try { return _cache.removeAll(oids); } catch (RuntimeException re) { throw translate(re); } }
public void removeAll(Class<?> cls, boolean subclasses) { if (_cache == null) return; try { _cache.removeAll(cls, subclasses); } catch (RuntimeException re) { throw translate(re); } }
/** * Evict all members of the given classes. */ private void evictTypes(Collection<Class<?>> classes) { if (classes.isEmpty()) return; MetaDataRepository mdr = _ctx.getConfiguration().getMetaDataRepositoryInstance(); ClassLoader loader = _ctx.getClassLoader(); DataCache cache; for (Class<?> cls : classes) { cache = mdr.getMetaData(cls, loader, false).getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) cache.removeAll(cls, false); } }
/** * Evict all members of the given classes. */ private void evictTypes(Collection<Class<?>> classes) { if (classes.isEmpty()) return; MetaDataRepository mdr = _ctx.getConfiguration().getMetaDataRepositoryInstance(); ClassLoader loader = _ctx.getClassLoader(); DataCache cache; for (Class<?> cls : classes) { cache = mdr.getMetaData(cls, loader, false).getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) cache.removeAll(cls, false); } }
public Number executeUpdate(StoreQuery q, Object[] params) { try { return q.getContext().updateInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeUpdate(StoreQuery q, Object[] params) { try { return q.getContext().updateInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeDelete(StoreQuery q, Object[] params) { try { return q.getContext().deleteInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeUpdate(StoreQuery q, Object[] params) { try { return q.getContext().updateInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeDelete(StoreQuery q, Object[] params) { try { return q.getContext().deleteInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeDelete(StoreQuery q, Object[] params) { try { return q.getContext().deleteInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeUpdate(StoreQuery q, Object[] params) { try { return q.getContext().updateInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }
public Number executeDelete(StoreQuery q, Object[] params) { try { return q.getContext().deleteInMemory(q, this, params); } finally { for (ClassMetaData cmd : getAccessPathMetaDatas(q)) { DataCache cache = cmd.getDataCache(); if (cache != null && cache.getEvictOnBulkUpdate()) { cache.removeAll(cmd.getDescribedType(), true); } } } }