|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.valuestore.shared.impl.RecordJsoImpl
public class RecordJsoImpl
Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.
JSO implementation ofRecord, used to back subclasses of
RecordImpl.
| Field Summary |
|---|
| Fields inherited from interface com.google.gwt.valuestore.shared.Record |
|---|
id, version |
| Method Summary | ||
|---|---|---|
static JsArray<RecordJsoImpl> |
arrayFromJson(java.lang.String json)
|
|
static RecordJsoImpl |
create(java.lang.String id,
java.lang.Integer version,
RecordSchema<?> schema)
|
|
void |
delete(java.lang.String name)
|
|
static RecordJsoImpl |
emptyCopy(RecordImpl from)
|
|
static RecordJsoImpl |
fromJson(java.lang.String json)
|
|
|
get(Property<V> property)
Get this record's value for the given property. |
|
|
get(java.lang.String propertyName)
|
|
java.lang.String |
getId()
|
|
|
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. |
|
RecordSchema<?> |
getSchema()
|
|
java.lang.Integer |
getVersion()
|
|
boolean |
isDefined(java.lang.String name)
|
|
boolean |
isEmpty()
|
|
boolean |
merge(RecordJsoImpl from)
|
|
|
set(Property<V> property,
V value)
|
|
void |
setSchema(RecordSchema<?> schema)
|
|
java.lang.String |
toJson()
Return JSON representation using org.json library. |
|
java.lang.String |
toJsonIdVersion()
Return JSON representation of just id and version fields, using org.json library. |
|
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static JsArray<RecordJsoImpl> arrayFromJson(java.lang.String json)
public static RecordJsoImpl create(java.lang.String id,
java.lang.Integer version,
RecordSchema<?> schema)
public static RecordJsoImpl emptyCopy(RecordImpl from)
public static RecordJsoImpl fromJson(java.lang.String json)
public final void delete(java.lang.String name)
public final <V> V get(Property<V> property)
Record
get in interface RecordV - the type of the property's valueproperty - the property to fetch
public final <T> T get(java.lang.String propertyName)
public final java.lang.String getId()
getId in interface Recordpublic final <V> PropertyReference<V> getRef(Property<V> property)
Record
getRef in interface RecordV - the type of the property valueproperty - the property referred to
public final RecordSchema<?> getSchema()
public final java.lang.Integer getVersion()
getVersion in interface Recordpublic final boolean isDefined(java.lang.String name)
name - public final boolean isEmpty()
public final boolean merge(RecordJsoImpl from)
public final <V> void set(Property<V> property,
V value)
public final void setSchema(RecordSchema<?> schema)
public final java.lang.String toJson()
public final java.lang.String toJsonIdVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||