public void closeAll() { try { _extent.closeAll(); } catch (RuntimeException re) { throw translate(re); } }
public Broker getBroker() { try { return _extent.getBroker(); } catch (RuntimeException re) { throw translate(re); } }
public Class<T> getElementType() { try { return _extent.getElementType(); } catch (RuntimeException re) { throw translate(re); } }
public Iterator extentIterator(Class type, boolean subclasses, FetchConfiguration fetch, boolean ignoreChanges) { Extent extent = newExtent(type, subclasses, fetch); extent.setIgnoreChanges(ignoreChanges); return extent.iterator(); }
public Extent getCandidateExtent() { // if just the class is set, fetch the corresponding extent; if the // extent is already set but its ignore cache setting is wrong, // get a new extent with the correct setting (don't modify orig extent // in case the user has a reference to it and might use it) lock(); try { Class<?> cls = getCandidateType(); if (_extent == null && _collection == null && _broker != null && cls != null) { _extent = _broker.newExtent(cls, _subclasses); _extent.setIgnoreChanges(_ignoreChanges); } else if (_extent != null && _extent.getIgnoreChanges() != _ignoreChanges && cls != null){ _extent = _broker.newExtent(cls, _extent.hasSubclasses()); _extent.setIgnoreChanges(_ignoreChanges); } return _extent; } finally { unlock(); } }
public void setCandidateExtent(Extent candidateExtent) { lock(); try { assertOpen(); assertNotReadOnly(); if (candidateExtent == _extent) return; if (candidateExtent == null) { _extent = null; return; } // if extent then not collection _extent = candidateExtent; _collection = null; boolean invalidate = false; if (_extent.getElementType() != _class) { _class = _extent.getElementType(); _loader = null; invalidate = true; } if (_extent.hasSubclasses() != _subclasses) { _subclasses = _extent.hasSubclasses(); invalidate = true; } if (invalidate) invalidateCompilation(); } finally { unlock(); } }
public Iterator<T> iterator() { try { return _extent.iterator(); } catch (RuntimeException re) { throw translate(re); } }
public FetchConfiguration getFetchConfiguration() { try { return _extent.getFetchConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public void setIgnoreChanges(boolean ignoreCache) { try { _extent.setIgnoreChanges(ignoreCache); } catch (RuntimeException re) { throw translate(re); } }
public boolean getIgnoreChanges() { try { return _extent.getIgnoreChanges(); } catch (RuntimeException re) { throw translate(re); } }
public List list() { try { return _extent.list(); } catch (RuntimeException re) { throw translate(re); } }
public void lock() { try { _extent.lock(); } catch (RuntimeException re) { throw translate(re); } }
public Extent getCandidateExtent() { // if just the class is set, fetch the corresponding extent; if the // extent is already set but its ignore cache setting is wrong, // get a new extent with the correct setting (don't modify orig extent // in case the user has a reference to it and might use it) lock(); try { Class<?> cls = getCandidateType(); if (_extent == null && _collection == null && _broker != null && cls != null) { _extent = _broker.newExtent(cls, _subclasses); _extent.setIgnoreChanges(_ignoreChanges); } else if (_extent != null && _extent.getIgnoreChanges() != _ignoreChanges && cls != null){ _extent = _broker.newExtent(cls, _extent.hasSubclasses()); _extent.setIgnoreChanges(_ignoreChanges); } return _extent; } finally { unlock(); } }
public void setCandidateExtent(Extent candidateExtent) { lock(); try { assertOpen(); assertNotReadOnly(); if (candidateExtent == _extent) return; if (candidateExtent == null) { _extent = null; return; } // if extent then not collection _extent = candidateExtent; _collection = null; boolean invalidate = false; if (_extent.getElementType() != _class) { _class = _extent.getElementType(); _loader = null; invalidate = true; } if (_extent.hasSubclasses() != _subclasses) { _subclasses = _extent.hasSubclasses(); invalidate = true; } if (invalidate) invalidateCompilation(); } finally { unlock(); } }
public Iterator extentIterator(Class type, boolean subclasses, FetchConfiguration fetch, boolean ignoreChanges) { Extent extent = newExtent(type, subclasses, fetch); extent.setIgnoreChanges(ignoreChanges); return extent.iterator(); }
public Iterator<T> iterator() { try { return _extent.iterator(); } catch (RuntimeException re) { throw translate(re); } }
public FetchConfiguration getFetchConfiguration() { try { return _extent.getFetchConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public void setIgnoreChanges(boolean ignoreCache) { try { _extent.setIgnoreChanges(ignoreCache); } catch (RuntimeException re) { throw translate(re); } }