public class JSEntity extends Object implements IJSObject
| Modifier and Type | Class and Description |
|---|---|
static class |
JSEntity.JSEntityError |
| Modifier and Type | Field and Description |
|---|---|
static JSEntity |
EMPTY |
static String |
TYPE |
| Constructor and Description |
|---|
JSEntity(EntityModel type,
EntityManager em) |
JSEntity(EntityModel type,
IJSObject id,
EntityManager em) |
JSEntity(EntityModel model,
com.google.gwt.json.client.JSONObject json,
EntityManager em) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDelete() |
boolean |
canEdit() |
int |
compareTo(IJSObject other) |
void |
delete(JsonRPCTransaction tran) |
IJSObject |
getCommitedProperty(String name) |
String |
getDisplayValue() |
EntityManager |
getEntityManager() |
IJSObject |
getID() |
com.google.gwt.json.client.JSONValue |
getJSONValue() |
EntityModel |
getModel() |
IJSObject |
getProperty(String name) |
IJSObject |
getProperty(String name,
String type) |
String |
getType() |
boolean |
isDeleted() |
boolean |
isEquals(IJSObject other) |
boolean |
isInitialized() |
boolean |
isValid() |
Promise<Void,IError> |
load() |
void |
save(JsonRPCTransaction tran) |
void |
setProperty(String name,
IJSObject v) |
public static final String TYPE
public static final JSEntity EMPTY
public JSEntity(EntityModel type, EntityManager em)
public JSEntity(EntityModel type, IJSObject id, EntityManager em)
public JSEntity(EntityModel model, com.google.gwt.json.client.JSONObject json, EntityManager em)
public boolean isValid()
public boolean isInitialized()
public IJSObject getID()
public String getDisplayValue()
getDisplayValue in interface IJSObjectpublic EntityModel getModel()
public void save(JsonRPCTransaction tran)
public void delete(JsonRPCTransaction tran)
public int compareTo(IJSObject other)
compareTo in interface Comparable<IJSObject>public com.google.gwt.json.client.JSONValue getJSONValue()
getJSONValue in interface IJSObjectpublic EntityManager getEntityManager()
public boolean canDelete()
public boolean isDeleted()
public boolean canEdit()
Copyright © 2018. All rights reserved.