Examples of ReferenceHashSet


Examples of org.apache.openjpa.lib.util.ReferenceHashSet

                _dirty.remove(sm);
        }

        private boolean addCleanInternal(StateManagerImpl sm) {
            if (_clean == null)
                _clean = new ReferenceHashSet(ReferenceHashSet.SOFT);
            return _clean.add(sm);
        }
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

                    Class cls = (Class) itr.next();
                    _pcClassNames.add(cls.getName());
                    if (needsSub(cls))
                        toRedefine.add(cls);
                }
                _pcClassLoaders = new ReferenceHashSet(ReferenceHashSet.WEAK);
                _pcClassLoaders.add(loader);
            }
        } else {
            // reload with this loader
            if (_pcClassLoaders.add(loader)) {
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

        FetchConfiguration fetch) {
        beginOperation(true);
        try {
            ExtentImpl extent = new ExtentImpl(this, type, subclasses, fetch);
            if (_extents == null)
                _extents = new ReferenceHashSet(ReferenceHashSet.WEAK);
            _extents.add(extent);

            return extent;
        } catch (OpenJPAException ke) {
            throw ke;
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

            if (query != null)
                q.setQuery(query);

            // track queries
            if (_queries == null)
                _queries = new ReferenceHashSet(ReferenceHashSet.WEAK);
            _queries.add(q);
            return q;
        } catch (OpenJPAException ke) {
            throw ke;
        } catch (RuntimeException re) {
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

                _dirty.remove(sm);
        }

        private boolean addCleanInternal(StateManagerImpl sm) {
            if (_clean == null)
                _clean = new ReferenceHashSet(ReferenceHashSet.SOFT);
            return _clean.add(sm);
        }
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

            _untracked.add(sm);
        }

        if (!sm.isPersistent() || sm.isEmbedded()) {
            if (_embeds == null)
                _embeds = new ReferenceHashSet(ReferenceHashSet.WEAK);
            _embeds.add(sm);
            return;
        }

        // initializing new instance; put in new cache because won't have
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

                _dirty.remove(sm);
        }

        private boolean addCleanInternal(StateManagerImpl sm) {
            if (_clean == null)
                _clean = new ReferenceHashSet(ReferenceHashSet.SOFT);
            return _clean.add(sm);
        }
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

            if (query != null)
                q.setQuery(query);

            // track queries
            if (_queries == null)
                _queries = new ReferenceHashSet(ReferenceHashSet.WEAK);
            _queries.add(q);
            return q;
        } catch (OpenJPAException ke) {
            throw ke;
        } catch (RuntimeException re) {
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

        FetchConfiguration fetch) {
        beginOperation(true);
        try {
            ExtentImpl extent = new ExtentImpl(this, type, subclasses, fetch);
            if (_extents == null)
                _extents = new ReferenceHashSet(ReferenceHashSet.WEAK);
            _extents.add(extent);

            return extent;
        } catch (OpenJPAException ke) {
            throw ke;
View Full Code Here

Examples of org.apache.openjpa.lib.util.ReferenceHashSet

                _dirty.remove(sm);
        }

        private boolean addCleanInternal(StateManagerImpl sm) {
            if (_clean == null)
                _clean = new ReferenceHashSet(ReferenceHashSet.SOFT);
            return _clean.add(sm);
        }
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.