public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
public boolean hasSubclasses() { try { return _extent.hasSubclasses(); } catch (RuntimeException re) { throw translate(re); } }
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 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 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 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 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 void evictAll(Extent extent, OpCallbacks call) { if (extent == null) return; beginOperation(false); try { // evict all PClean and PNonTrans objects in extent Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; Class<?> cls; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) { cls = sm.getMetaData().getDescribedType(); if (cls == extent.getElementType() || (extent.hasSubclasses() && extent.getElementType().isAssignableFrom(cls))) evict(sm.getManagedInstance(), call); } } } finally { endOperation(); } }
public void evictAll(Extent extent, OpCallbacks call) { if (extent == null) return; beginOperation(false); try { // evict all PClean and PNonTrans objects in extent Collection c = getManagedStates(); StateManagerImpl sm; Class cls; for (Iterator itr = c.iterator(); itr.hasNext();) { sm = (StateManagerImpl) itr.next(); if (sm.isPersistent() && !sm.isDirty()) { cls = sm.getMetaData().getDescribedType(); if (cls == extent.getElementType() || (extent.hasSubclasses() && extent.getElementType().isAssignableFrom(cls))) evict(sm.getManagedInstance(), call); } } } finally { endOperation(); } }
public void evictAll(Extent extent, OpCallbacks call) { if (extent == null) return; beginOperation(false); try { // evict all PClean and PNonTrans objects in extent Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; Class<?> cls; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) { cls = sm.getMetaData().getDescribedType(); if (cls == extent.getElementType() || (extent.hasSubclasses() && extent.getElementType().isAssignableFrom(cls))) evict(sm.getManagedInstance(), call); } } } finally { endOperation(); } }
public void evictAll(Extent extent, OpCallbacks call) { if (extent == null) return; beginOperation(false); try { // evict all PClean and PNonTrans objects in extent Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; Class<?> cls; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) { cls = sm.getMetaData().getDescribedType(); if (cls == extent.getElementType() || (extent.hasSubclasses() && extent.getElementType().isAssignableFrom(cls))) evict(sm.getManagedInstance(), call); } } } finally { endOperation(); } }
public void evictAll(Extent extent, OpCallbacks call) { if (extent == null) return; beginOperation(false); try { // evict all PClean and PNonTrans objects in extent Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; Class<?> cls; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) { cls = sm.getMetaData().getDescribedType(); if (cls == extent.getElementType() || (extent.hasSubclasses() && extent.getElementType().isAssignableFrom(cls))) evict(sm.getManagedInstance(), call); } } } finally { endOperation(); } }
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 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 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 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 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(); } }