Package com.basho.riak.client.convert

Examples of com.basho.riak.client.convert.NoKeySpecifedException


     */
    public <T> StoreObject<T> store(final T o) {
        @SuppressWarnings("unchecked") Class<T> clazz = (Class<T>) o.getClass();
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        return new StoreObject<T>(client, name, key, retrier)
            .withConverter(new JSONConverter<T>(clazz, name))
                .withMutator(new ClobberMutation<T>(o))
                  .withResolver(new DefaultResolver<T>());
View Full Code Here


     */
    public <T> FetchObject<T> fetch(T o) {
        @SuppressWarnings("unchecked") final Class<T> clazz = (Class<T>) o.getClass();
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        return new FetchObject<T>(client, name, key, retrier)
            .withConverter(new JSONConverter<T>(clazz, name))
            .withResolver(new DefaultResolver<T>());
    }
View Full Code Here

     * @see com.basho.riak.newapi.bucket.Bucket#delete(java.lang.Object)
     */
    public <T> DeleteObject delete(T o) {
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        return new DeleteObject(client, name, key, retrier);
    }
View Full Code Here

     */
    public <T> FetchObject<T> fetch(T o) {
        @SuppressWarnings("unchecked") final Class<T> clazz = (Class<T>) o.getClass();
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        Converter<T> converter = getDefaultConverter(clazz);
        return new FetchObject<T>(client, name, key, retrier)
            .withConverter(converter)
            .withResolver(new DefaultResolver<T>());
View Full Code Here

     * @see com.basho.riak.newapi.bucket.Bucket#delete(java.lang.Object)
     */
    public <T> DeleteObject delete(T o) {
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        return new DeleteObject(client, name, key, retrier);
    }
View Full Code Here

        List<String> keyList = new ArrayList<String>(objs.size());
        for (T obj : objs)
        {
            String key = getKey(obj);
            if (key == null) {
                throw new NoKeySpecifedException(o);
            }
            keyList.add(key);
        }
       
        Converter<T> converter = getDefaultConverter(clazz);
View Full Code Here

     */
    public <T> StoreObject<T> store(final T o) {
        @SuppressWarnings("unchecked") Class<T> clazz = (Class<T>) o.getClass();
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }

        Converter<T> converter = getDefaultConverter(clazz);

        return new StoreObject<T>(client, name, key, retrier)
View Full Code Here

     */
    public <T> FetchObject<T> fetch(T o) {
        @SuppressWarnings("unchecked") final Class<T> clazz = (Class<T>) o.getClass();
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        Converter<T> converter = getDefaultConverter(clazz);
        return new FetchObject<T>(client, name, key, retrier)
            .withConverter(converter)
            .withResolver(new DefaultResolver<T>());
View Full Code Here

     * @see com.basho.riak.newapi.bucket.Bucket#delete(java.lang.Object)
     */
    public <T> DeleteObject delete(T o) {
        final String key = getKey(o);
        if (key == null) {
            throw new NoKeySpecifedException(o);
        }
        return new DeleteObject(client, name, key, retrier);
    }
View Full Code Here

        List<String> keyList = new ArrayList<String>(objs.size());
        for (T obj : objs)
        {
            String key = getKey(obj);
            if (key == null) {
                throw new NoKeySpecifedException(o);
            }
            keyList.add(key);
        }
       
        Converter<T> converter = getDefaultConverter(clazz);
View Full Code Here

TOP

Related Classes of com.basho.riak.client.convert.NoKeySpecifedException

Copyright © 2018 www.massapicom. 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.