Package org.apache.openjpa.lib.util

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


                _dirty.remove(sm);
        }

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

        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

            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

                _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

                _dirty.remove(sm);
        }

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

        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

            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

                    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

        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

TOP

Related Classes of org.apache.openjpa.lib.util.ReferenceHashSet

Copyright © 2018 www.massapicom. 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.