Package org.datanucleus.util

Examples of org.datanucleus.util.WeakValueMap


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

        if (applyRangeChecks())
        {
            startIndex = (int) query.getRangeFromIncl();
View Full Code Here


     */
    public WeakLevel2Cache(NucleusContext nucleusCtx)
    {
        apiAdapter = nucleusCtx.getApiAdapter();
        pinnedCache = new HashMap();
        unpinnedCache = new WeakValueMap();
        maxSize = nucleusCtx.getPersistenceConfiguration().getIntProperty("datanucleus.cache.level2.maxSize");
    }
View Full Code Here

    private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
    {
        // our "pseudo-constructor"
        in.defaultReadObject();
        unpinnedCache = new WeakValueMap();
    }
View Full Code Here

            {
                results = new HashMap();
            }
            else if (ext.equalsIgnoreCase("weak"))
            {
                results = new WeakValueMap();
            }
            else if (ext.equalsIgnoreCase("none"))
            {
                results = null;
            }
View Full Code Here

    }


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

     */
    public WeakLevel2Cache(OMFContext omfCtx)
    {
        apiAdapter = omfCtx.getApiAdapter();
        pinnedCache = new HashMap();
        unpinnedCache = new WeakValueMap();
    }
View Full Code Here

    private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
    {
        // our "pseudo-constructor"
        in.defaultReadObject();
        unpinnedCache = new WeakValueMap();
    }
View Full Code Here

TOP

Related Classes of org.datanucleus.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.