Package org.datanucleus.identity

Examples of org.datanucleus.identity.IdentityStringTranslator


            // Translate the identity if required
            if (getNucleusContext().getIdentityStringTranslator() != null && identities[i] instanceof String)
            {
                // DataNucleus extension to translate input identities into valid persistent identities.
                IdentityStringTranslator translator = getNucleusContext().getIdentityStringTranslator();
                ids[i] = translator.getIdentity(this, (String)identities[i]);
            }
            else
            {
                ids[i] = identities[i];
            }
View Full Code Here


        if (id == null)
        {
            throw new NucleusUserException(LOCALISER.msg("010044"));
        }

        IdentityStringTranslator translator = getNucleusContext().getIdentityStringTranslator();
        if (translator != null && id instanceof String)
        {
            // DataNucleus extension to translate input identities into valid persistent identities.
            id = translator.getIdentity(this, (String)id);
        }

        // try to find object in cache(s)
        Object pc = getObjectFromCache(id);
        boolean fromCache = true;
View Full Code Here

TOP

Related Classes of org.datanucleus.identity.IdentityStringTranslator

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.