com.google.gwt.valuestore.shared.impl
Class RecordSchema<R extends Record>

java.lang.Object
  extended by com.google.gwt.valuestore.shared.impl.RecordSchema<R>
Type Parameters:
R - the type of the Records this schema describes

public abstract class RecordSchema<R extends Record>
extends java.lang.Object

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

Used by Record implementations generated by RequestFactoryGenerator. Defines the set of properties for a class of Record, and serves as a factory for these records and their RecordChangedEvents.


Constructor Summary
RecordSchema()
           
 
Method Summary
 java.util.Set<Property<?>> allProperties()
           
abstract  R create(RecordJsoImpl jso)
           
 RecordChangedEvent<?,?> createChangeEvent(RecordJsoImpl jsoRecord, WriteOperation writeOperation)
           
abstract  RecordChangedEvent<?,?> createChangeEvent(Record record, WriteOperation writeOperation)
           
abstract  java.lang.Class<? extends Record> getToken()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordSchema

public RecordSchema()
Method Detail

allProperties

public java.util.Set<Property<?>> allProperties()

create

public abstract R create(RecordJsoImpl jso)

createChangeEvent

public abstract RecordChangedEvent<?,?> createChangeEvent(Record record,
                                                          WriteOperation writeOperation)

createChangeEvent

public RecordChangedEvent<?,?> createChangeEvent(RecordJsoImpl jsoRecord,
                                                 WriteOperation writeOperation)

getToken

public abstract java.lang.Class<? extends Record> getToken()