@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface Model
| Modifier and Type | Optional Element and Description |
|---|---|
String |
createMethod
Specifies the create method.
|
String |
destroyMethod
Specifies the destroy method.
|
boolean |
disablePagingParameters
If set to true the pageParam, startParam and limitParam option of the
proxy will be set to undefined.
|
String |
idProperty
Name of the id property.
|
String |
messageProperty
if set add to reader
|
boolean |
paging
If true a reader config with root : 'records' will be added to the model
object.
|
String |
readMethod
Specifies the read method.
|
String |
updateMethod
Specifies the update method.
|
String |
value
"Classname" of the model.
|
public abstract String value
If not present full qualified name of the class is used.
public abstract String idProperty
If not present default value of 'id' is used.
public abstract boolean paging
ExtDirectStoreResult
reader : {
root : 'records'
}
Default value is falsepublic abstract boolean disablePagingParameters
proxy: {
type: 'direct',
pageParam: undefined,
startParam: undefined,
limitParam: undefined,
}
Default value is falsepublic abstract String readMethod
If only the readMethod is specified generator will write property directFn instead.
public abstract String createMethod
public abstract String updateMethod
public abstract String destroyMethod
public abstract String messageProperty
reader : {
messageProperty : 'your property name'
}
It is useful to add a customized message in case of error See Ext.data.reader.Reader#messagePropertyCopyright © 2010-2013. All Rights Reserved.