Examples of data()


Examples of org.infinispan.server.core.CacheValue.data()

   @Override
   public Object decodeValue(Object value) throws CodecException {
      if (value != null) {
         try {
            CacheValue cv = (CacheValue) value;
            return marshaller.objectFromByteBuffer(cv.data());
         } catch (Exception e) {
            throw log.valueDecodingFailed(e, this.getName());
         }
      } else {
         return null;
View Full Code Here

Examples of org.infinispan.server.core.CacheValue.data()

   private InternalCacheEntry getInternalCacheEntry(Cache<ByteArrayKey, CacheValue> cache, String key, String value) throws Exception {
      InternalCacheEntry entry = cache.getAdvancedCache().getDataContainer().get(toBinaryKey(key));
      if (value != null) {
         CacheValue v = (CacheValue) entry.getValue();
         AssertJUnit.assertEquals(toBinaryValue(value), v.data());
      }
      return entry;
   }

   private ByteArrayKey toBinaryKey(String key) throws Exception {
View Full Code Here

Examples of org.infinispan.server.core.CacheValue.data()

      ByteArrayKey cacheKey = new ByteArrayKey(keyBytes);
      CacheValue cacheValue = (CacheValue) cache.get(cacheKey);
      if (value == null) {
         assert cacheValue == null : "Expected null value but received: " + cacheValue;
      } else {
         assert Arrays.equals(valueBytes, (byte[])cacheValue.data());
      }
   }
}
View Full Code Here

Examples of org.infinispan.server.memcached.MemcachedValue.data()

   @Override
   public Object decodeValue(Object value) {
      if (value != null) {
         MemcachedValue mv = (MemcachedValue)value;
         return new String(mv.data(), UTF8);
      } else {
         return null;
      }

   }
View Full Code Here

Examples of org.jooq.BindContext.data()

public class BindContextTest extends AbstractTest {

    @Test
    public void testData() {
        BindContext ctx = create.bindContext(statement);
        ctx.data("key", "value");

        TestDataQueryPart part = new TestDataQueryPart();
        ctx.visit(part);
        assertEquals("value", part.value);
    }
View Full Code Here

Examples of org.jooq.Configuration.data()

            configuration.executeListenerProviders(),
            new DefaultExecuteListenerProvider(collector)
        ));

        // [#1537] Communicate with UpdatableRecordImpl
        local.data(Utils.DATA_OMIT_RETURNING_CLAUSE, true);

        // [#1529] Avoid DEBUG logging of single INSERT / UPDATE statements
        local.settings().setExecuteLogging(false);

        for (int i = 0; i < records.length; i++) {
View Full Code Here

Examples of org.jooq.RenderContext.data()

    }

    @Test
    public void testData() {
        RenderContext ctx = create.renderContext();
        ctx.data("key", "value");

        TestDataQueryPart part = new TestDataQueryPart();
        ctx.render(part);
        assertEquals("value", part.value);
    }
View Full Code Here

Examples of org.jsoup.Connection.data()

        assertEquals(Connection.Method.POST, con.request().method());
    }

    @Test(expected=IllegalArgumentException.class) public void throwsOnOdddData() {
        Connection con = HttpConnection.connect("http://example.com/");
        con.data("Name", "val", "what");
    }

    @Test public void data() {
        Connection con = HttpConnection.connect("http://example.com/");
        con.data("Name", "Val", "Foo", "bar");
View Full Code Here

Examples of org.jtester.module.database.dbop.AbstractDataSet.EmptyDataSet.data()

  public ITableOp insert(final int count, final DataMap datas) {
    IN_DB_OPERATOR.set(true);
    try {
      AbstractDataSet ds = new EmptyDataSet();
      ds.data(count, datas);
      ds.insert(table);
      return this;
    } finally {
      IN_DB_OPERATOR.set(false);
    }
View Full Code Here

Examples of org.metagrid.gatekeeper.common.io.test.StringResource.data()

        //
        // Close the writer.
        writer.close();

        if (log.isDebugEnabled()) log.debug("----");
        if (log.isDebugEnabled()) log.debug(resource.data());
        if (log.isDebugEnabled()) log.debug("----");

        }
    }
   
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.