com.google.gwt.valuestore.shared
Interface Record

All Known Implementing Classes:
RecordImpl, RecordJsoImpl

public interface Record

Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.

An entry in a ValueStore.


Field Summary
static Property<java.lang.String> id
           
static Property<java.lang.Integer> version
           
 
Method Summary
<V> V
get(Property<V> property)
          Get this record's value for the given property.
 java.lang.String getId()
           
<V> PropertyReference<V>
getRef(Property<V> property)
          Get a "pointer" to value of this property in the receiver, useful for making rpc requests against values that have not yet reached the client.
 java.lang.Integer getVersion()
           
 

Field Detail

id

static final Property<java.lang.String> id

version

static final Property<java.lang.Integer> version
Method Detail

get

<V> V get(Property<V> property)
Get this record's value for the given property. Behavior is undefined if the record has no such property, or if the property has never been set. It is unusual to call this method directly. Rather it is expected to be called by bean-style getter methods provided by implementing classes.

Type Parameters:
V - the type of the property's value
Parameters:
property - the property to fetch
Returns:
the value

getId

java.lang.String getId()
Returns:
the id of this Record

getRef

<V> PropertyReference<V> getRef(Property<V> property)
Get a "pointer" to value of this property in the receiver, useful for making rpc requests against values that have not yet reached the client.

Type Parameters:
V - the type of the property value
Parameters:
property - the property referred to
Returns:
a reference to the receiver's value of this property

getVersion

java.lang.Integer getVersion()
Returns:
the version of this Record