Examples of keys()


Examples of com.sleepycat.persist.EntityJoin.keys()

        List<Integer> found;
        Transaction txn = txnBegin();

        /* Keys */
        found = new ArrayList<Integer>();
        ForwardCursor<Integer> keys = join.keys(txn, null);
        for (int i : keys) {
            found.add(i);
        }
        keys.close();
        assertEquals(expect, found);
View Full Code Here

Examples of com.sun.appserv.util.cache.BaseCache.keys()

        }
        BaseCache replicatedDialogFragmentsCache = getReplicatedDialogFragments();
        ReplicationHealthChecker healthChecker
                = ReplicationHealthChecker.getInstance();
        int expiredReplicas = 0;
        for (Iterator it = replicatedDialogFragmentsCache.keys(); it.hasNext();) {
            ReplicationState nextState = (ReplicationState)
                    replicatedDialogFragmentsCache.get((String) it.next());
            if (!ExpatListHandler.isExpatExtraDurationInEffect()
                    && !ExpatListHandler.isExpatInProgress()
                    && isExpiredDialogFragmentReplica(nextState)) {
View Full Code Here

Examples of com.sun.grizzly.SelectorHandler.keys()

         */
        SelectorHandler serverHandler = e.getValue().getLeft();

        if (closesocket) {
            try {
                Set<SelectionKey> keys = serverHandler.keys();

                for (SelectionKey key : keys) {
                    if ((key.interestOps() & SelectionKey.OP_ACCEPT) ==
                            SelectionKey.OP_ACCEPT) {
                        serverHandler.closeChannel(key.channel());
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStoreAttrs.keys()

  checkBox.setSelected(true);

  ObjStoreAttrs attrs = os.getObjStoreAttrs();
  jndiProps.clear();
  if (attrs != null) {
      for (java.util.Enumeration e = attrs.keys(); e.hasMoreElements(); ) {
    String key = (String)e.nextElement();
    jndiProps.setProperty(key, (String)attrs.get(key));
      }
      model.fireTableRowsInserted(0, attrs.size()-1);
         // Select the first one in the list.
View Full Code Here

Examples of com.sun.star.report.ParameterMap.keys()

        tempReport.setDataFactory(new StarReportDataFactory(dataSourceFactory));
        tempReport.setJobProperties(definition.getProcessingParameters().copy());
        final ReportParameters inputParameters = tempReport.getInputParameters();

        final ParameterMap queryParameters = definition.getQueryParameters();
        final String[] paramKeys = queryParameters.keys();
        for (int i = 0; i < paramKeys.length; i++)
        {
            final String key = paramKeys[i];
            inputParameters.put(key, queryParameters.get(key));
        }
View Full Code Here

Examples of com.threealike.life.thirdparty.org.json.JSONObject.keys()

      for(int j=0; j < apply.length(); j++) {
        if(apply.getString(j).equals(MODE)) {
//          if(CONF.get(appLabel) == null)
//            CONF.put(appLabel, next);
//          else {
            for(Iterator it = next.keys(); it.hasNext();) {
              String next1 = (String)it.next();
              tmp.put(next1, next.get(next1));
            }
//          }
          break inner;
View Full Code Here

Examples of com.vtence.molecule.Session.keys()

        Session saved = save(data);
        data.clear();

        assertThat("saved session", saved, not(Matchers.sameInstance(data)));
        assertThat("saved session expiration time", saved.maxAge(), equalTo(maxAge));
        assertThat("saved session keys", saved.keys(), Matchers.<Object>contains("a", "b", "c"));
        assertThat("saved session values", saved.values(), Matchers.<Object>contains("Alice", "Bob", "Chris"));
    }

    @Test public void
    loadsSessionContentDefensively() {
View Full Code Here

Examples of elemental.json.JsonObject.keys()

        for (ClientConnector connector : dirtyVisibleConnectors) {
            // encode and send shared state
            try {
                JsonObject stateJson = connector.encodeState();

                if (stateJson != null && stateJson.keys().length != 0) {
                    sharedStates.put(connector.getConnectorId(), stateJson);
                }
            } catch (JsonException e) {
                throw new PaintException(
                        "Failed to serialize shared state for connector "
View Full Code Here

Examples of external.JSON.JSONObject.keys()

            if (x instanceof JSONObject) {
                JSONObject theObject = (JSONObject)x;

                // Sort the keys
                TreeSet<String> t = new TreeSet<String>();
                Iterator<?> i = theObject.keys();
                while (i.hasNext()) t.add(i.next().toString());
                Iterator<String> keys = t.iterator();

                StringBuffer sb = new StringBuffer("{");
                while (keys.hasNext()) {
View Full Code Here

Examples of facebook4j.internal.org.json.JSONObject.keys()

        }
        try {
            JSONObject jsonObject = json.getJSONObject(name);
            HashMap<String, String> result = new HashMap<String, String>();
            @SuppressWarnings("unchecked")
            Iterator<String> keys = jsonObject.keys();
            while (keys.hasNext()) {
                String key = (String) keys.next();
                result.put(key, jsonObject.getString(key));
            }
            return result;
View Full Code Here
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.