ValueRow.java :  » CouchDB » jcouchdb » org » jcouchdb » document » Java Open Source

Java Open Source » CouchDB » jcouchdb 
jcouchdb » org » jcouchdb » document » ValueRow.java
package org.jcouchdb.document;

import org.svenson.AbstractDynamicProperties;

public class ValueRow<V>
    extends AbstractDynamicProperties
{

    private String id;

    private Object key;

    private V value;

    /**
     * Returns the id of the result object
     *
     * @return
     */
    public String getId()
    {
        return id;
    }

    /**
     * Sets the id of the result object
     *
     * @param id
     */
    public void setId(String id)
    {
        this.id = id;
    }

    /**
     * Returns the key this object was mapped to
     *
     * @return
     */
    public Object getKey()
    {
        return key;
    }

    public void setKey(Object key)
    {
        this.key = key;
    }

    /**
     * Returns the value mapped to this row.
     *
     * @return
     */
    public V getValue()
    {
        return value;
    }

    public void setValue(V value)
    {
        this.value = value;
    }

    @Override
    public String toString()
    {
        return super.toString() + ": id = " + id + ", key = " + key + ", value = " + value;
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.