Examples of fromDomain()


Examples of com.basho.riak.client.api.convert.Converter.fromDomain()

        else
        {
            converter = ConverterFactory.getInstance().getConverter(typeReference);
        }
       
        final OrmExtracted orm = converter.fromDomain(value, namespace, key);
       
        // If there's no vector clock in the object, use one possibly given via
        // the builder.
        if (orm.getRiakObject().getVClock() == null)
        {
View Full Code Here

Examples of com.basho.riak.client.api.convert.Converter.fromDomain()

        else
        {
            converter = ConverterFactory.getInstance().getConverter(typeReference);
        }
       
        final OrmExtracted orm = converter.fromDomain(value, namespace, key);
       
        // If there's no vector clock in the object, use one possibly given via
        // the builder.
        if (orm.getRiakObject().getVClock() == null)
        {
View Full Code Here

Examples of com.basho.riak.client.api.convert.StringConverter.fromDomain()

        String foo = "some value";
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, "bucket");
        StringConverter converter = new StringConverter();
       
       
        Converter.OrmExtracted orm = converter.fromDomain(foo, ns, BinaryValue.create("key"));
       
        assertNotNull(orm.getRiakObject());
        RiakObject obj = orm.getRiakObject();
        assertEquals(foo, obj.getValue().toString());
        assertEquals("text/plain", obj.getContentType());
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.