Examples of find()

Examples of org.apache.mina.integration.ognl.IoSessionFinder.find()

    protected Object invoke0(String name, Object[] params, String[] signature) throws Exception {
        if (name.equals("findSessions")) {
            IoSessionFinder finder = new IoSessionFinder((String) params[0]);
            return finder.find(getSource().getManagedSessions().values());

        if (name.equals("findAndRegisterSessions")) {
            IoSessionFinder finder = new IoSessionFinder((String) params[0]);
            Set<IoSession> registeredSessions = new LinkedHashSet<IoSession>();
View Full Code Here

Examples of org.apache.openejb.finder.ResourceFinder.find()

            if (applicationXmlUrl != null) {
                application = unmarshal(Application.class, "application.xml", applicationXmlUrl);
                for (Module module : application.getModule()) {
                    try {
                        if (module.getEjb() != null) {
                            URL url = finder.find(module.getEjb().trim());
                            ejbModules.put(module.getEjb(), url);
                        } else if (module.getJava() != null) {
                            URL url = finder.find(module.getJava().trim());
                            clientModules.put(module.getConnector(), url);
                        } else if (module.getConnector() != null) {
View Full Code Here

Examples of org.apache.openejb.util.AnnotationFinder.find()

                    return false;

            if (classFinder.find(filter)) {
                return EjbModule.class;

        if (descriptors.containsKey("persistence.xml")) {
View Full Code Here

Examples of org.apache.openjpa.kernel.Broker.find()

        // get obj into cache
        Broker broker = factory.newBroker();
        try {
            broker.find(_pc, true, null);
        } finally {
        // test from cache
View Full Code Here

Examples of org.apache.openjpa.kernel.StoreContext.find()

            case JavaTypes.PC:
            case JavaTypes.PC_UNTYPED:
                // for relations to other persistent objects, we store the related
                // object's oid -- convert it back into a persistent instance
                StoreContext ctx = sm.getContext();
                Object pc = ctx.find(val, fetch, null, null, 0);
                if (pc != null)
                    return pc;
                OrphanedKeyAction action = ctx.getConfiguration().
                return action.orphan(val, sm, vmd);
View Full Code Here

Examples of org.apache.openjpa.persistence.EntityManagerImpl.find()


            // Should prime the cache
            em.find(CachedEntityStatistics.class, e.getId()).getLazyList();

            CachedEntityStatistics c = em.find(CachedEntityStatistics.class, e.getId());
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.find()

        // this assumes that we invalidate the cache, rather than update it
        // according to the bulk rule.
            .contains(AllFieldTypes.class, oid));

        assertNull(em.find(AllFieldTypes.class, oid));

    public void testBulkUpdate() {
        OpenJPAEntityManager em = emf.createEntityManager();
View Full Code Here

Examples of org.apache.openjpa.persistence.OpenJPAEntityManagerSPI.find()

                       "t0.shortField, t0.stringField FROM AllFieldTypes " +
                       "t0 WHERE \\(t0.intField = \\?\\)  optimize for 8 row");
            else {
                 em.find(AllFieldTypes.class, 0);
                 if (dict instanceof DB2Dictionary ) {
                    assertEquals(1, sql.size());
                    assertSQL("SELECT t0.booleanField, t0.byteField, " +
                        "t0.charField, t0.dateField, t0.doubleField, " +
                        "t0.floatField, t0.intField, t0.longField, " +
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.CreateSeqBeanMgr.find()

    StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configCtx);
    CreateSeqBeanMgr createSeqMgr = storageManager.getCreateSeqBeanMgr();
    CreateSeqBean createSeqFindBean = new CreateSeqBean ()
    Collection arr = createSeqMgr.find(createSeqFindBean);
    if (arr.size()>0)
      return false;
    if (sequenceID.length()<=1)
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.InvokerBeanMgr.find()

        //that are missing) at the time the button is pressed.
        long firstMessageInOutOfOrderWindow = rMDBean.getNextMsgNoToProcess();
        InvokerBean selector = new InvokerBean();
        Iterator stMapIt = storageMapMgr.find(selector).iterator();
        long highestMsgNumberInvoked = 0;
        Transaction transaction = null;
        //invoke each bean in turn.
View Full Code Here
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.