Examples of lookup()


Examples of org.objectweb.speedo.pm.api.POManagerFactoryItf.lookup()

    //at the moment, only support for transactional and nontransactional strategy
    if (strategy != NON_TRANSACTIONAL) {
      //get the pmf
      POManagerFactoryItf pmf = sequenceManager.getPMF();
      //get the pm
      POManagerItf pm = pmf.lookup();
      //check that a transaction is active
      return (pm != null  && pm.getSpeedoTransaction().isActive());
    }
    return true;
  }

Examples of org.odmg.Database.lookup()

        Transaction tx = odmg.newTransaction();
        tx.begin();
        try
        {
            db.bind(example, bindingName);
            Article value = (Article) db.lookup(bindingName);
            assertTrue("Could not lookup object for binding name: "+bindingName, value != null);
            tx.commit();
        }
        catch (ObjectNameNotFoundException ex)
        {

Examples of org.openbel.framework.core.indexer.EquivalenceLookup.lookup()

                continue;
            }

            final TableParameter param = params[i];
            final String value = param.getValue();
            final SkinnyUUID lookup = bucket.lookup(value);

            // Null lookup means no equivalence
            if (lookup == null) {
                // Parameter index gets the current gi
                globalIndex.put(pIndex, gi);

Examples of org.openbel.framework.core.indexer.JDBMEquivalenceLookup.lookup()

    public SkinnyUUID getUUID(Parameter param) throws ResourceDownloadError,
            IndexingFailure, IOException {
        String srl = param.getNamespace().getResourceLocation();
        openEquivalence(srl);
        JDBMEquivalenceLookup lookup = openEquivalences.get(srl);
        return lookup.lookup(param.getValue());
    }

    /**
     * Obtain the destinationNamespace equivalent value of sourceValue in sourceNamespace
     * @param sourceNamespace resourceLocation of source namespace

Examples of org.openbel.framework.core.indexer.JDBMNamespaceLookup.lookup()

            final String fmt = "Namespace '%s' is not open.";
            final String msg = String.format(fmt, resourceLocation);
            throw new IndexingFailure(resourceLocation, msg);
        }

        String encoding = il.lookup(p.getValue());

        if (encoding == null) {
            String rl = ns.getResourceLocation();
            String pref = ns.getPrefix();
            throw new NamespaceSyntaxWarning(rl, pref, p.getValue());

Examples of org.openide.util.Lookup.lookup()

        super();
        this.MIME_TYPE = mimetype;
        if (MIME_TYPE.equals("text/x-clojure"))
        {
            Lookup l =  MimeLookup.getLookup(MimePath.get ("text/x-clojure"));
            Preferences p = l.lookup(Preferences.class);
            p.put(SimpleValueNames.CODE_FOLDING_ENABLE,Boolean.TRUE.toString());
        }
    }
   
    @Override

Examples of org.openstreetmap.josm.io.auth.CredentialsAgent.lookup()

    @Override
    public void initFromPreferences(Preferences pref) {
        super.initFromPreferences(pref);
        CredentialsAgent cm = CredentialsManager.getInstance();
        try {
            PasswordAuthentication pa = cm.lookup(RequestorType.SERVER, OsmApi.getOsmApi().getHost());
            if (pa == null) {
                tfUserName.setText("");
                tfPassword.setText("");
            } else {
                tfUserName.setText(pa.getUserName() == null ? "" : pa.getUserName());

Examples of org.ow2.easybeans.naming.context.ContextImpl.lookup()

        // Create a new environment
        ContextImpl ctx = new ContextImpl(namespace, true, null);

        // Create subContext
        Context compCtx = (Context) ctx.lookup("comp");

        // Bind java:comp/UserTransaction
        if (this.userTransaction == null) {
            try {
                this.userTransaction = (UserTransaction) this.ictx.lookup("javax.transaction.UserTransaction");

Examples of org.python.core.PyType.lookup()

        dict = subtype.instDict();
    }

    public PyString __str__() {
        PyType self_type = getType();
        PyObject impl = self_type.lookup("__str__");
        if (impl != null) {
            PyObject res = impl.__get__(this, self_type).__call__();
            if (res instanceof PyString)
                return (PyString) res;
            throw Py.TypeError("__str__" + " should return a " + "string");

Examples of org.python.indexer.Scope.lookup()

        NModuleType module = (NModuleType)idx.moduleTable.lookupType(abspath(file));
        Scope mtable = module.getTable();
        assertTrue(mtable.lookupType("MyClass").isClassType());
        assertTrue(mtable.lookupType("MyClassNoDoc").isClassType());
        assertTrue(mtable.lookupType("MyClass").getTable().getParent() == mtable);
        assertEquals(NBinding.Kind.CLASS, mtable.lookup("MyClass").getKind());
        Scope t = mtable.lookupType("MyClass").getTable();
        assertTrue(t.lookupType("__bases__").isTupleType());
        assertTrue(t.lookupType("__dict__").isDictType());
        assertEquals(idx.builtins.BaseStr, t.lookupType("__name__"));
        assertEquals(idx.builtins.BaseStr, t.lookupType("__module__"));
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.