Package org.jpox.util

Examples of org.jpox.util.WeakValueMap


    }


    protected ReferenceValueMap newReferenceValueMap()
    {
        return new WeakValueMap();
    }
View Full Code Here


     * @param omfCtx OMF Context
     */
    public DefaultLevel2Cache(OMFContext omfCtx)
    {
        pinnedCache = new HashMap();
        unpinnedCache = new WeakValueMap();
    }
View Full Code Here

            {
                resultsObjsByIndex = new SoftValueMap();
            }
            else if (ext.equalsIgnoreCase("weak"))
            {
                resultsObjsByIndex = new WeakValueMap();
            }
            else if (ext.equalsIgnoreCase("hard"))
            {
                resultsObjsByIndex = new HashMap();
            }
            else if (ext.equalsIgnoreCase("none"))
            {
                resultsObjsByIndex = null;
            }
            else
            {
                resultsObjsByIndex = new WeakValueMap();
            }
        }
        else
        {
            resultsObjsByIndex = new WeakValueMap();
        }

        if (resultsObjsByIndex != null)
        {
            // Caching results so load up any result objects needed right now
View Full Code Here

TOP

Related Classes of org.jpox.util.WeakValueMap

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.