public class ModelBase extends Object implements Model
| Constructor and Description |
|---|
ModelBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBucket()
The datastore bucket associated with this model.
|
String |
getCompoundId() |
ModelController |
getController()
The controller used to save/retrieve/update this model.
|
Boolean |
getDeleted()
Return true if the model is soft delete, false by default.
|
Long |
getId()
The primary key of the item.
|
Boolean |
getIsNewInsert()
Temporary Marker to indicate that this model should be inserted, not updated
|
Long |
getLastModifiedMillis()
When this model was last changed.
|
static Map<String,Object> |
getMeta() |
int |
hashCode() |
Model |
setBucket(String bucket) |
void |
setDeleted(Boolean deleted) |
<Y extends Model> |
setId(Long id) |
void |
setIsNewInsert(Boolean isNewInsert) |
<Y extends Model> |
setLastModifiedMillis(Long lastModifiedMillis) |
public ModelBase()
public ModelController getController()
ModelgetController in interface Modelpublic Boolean getDeleted()
ModelgetDeleted in interface Modelpublic void setDeleted(Boolean deleted)
setDeleted in interface Modelpublic Boolean getIsNewInsert()
ModelgetIsNewInsert in interface Modelpublic void setIsNewInsert(Boolean isNewInsert)
setIsNewInsert in interface Modelpublic String getCompoundId()
getCompoundId in interface Modelpublic String getBucket()
Modelpublic Long getLastModifiedMillis()
ModelgetLastModifiedMillis in interface Modelpublic <Y extends Model> Y setLastModifiedMillis(Long lastModifiedMillis)
setLastModifiedMillis in interface ModelCopyright © 2016. All rights reserved.