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()
Model
getController
in interface Model
public Boolean getDeleted()
Model
getDeleted
in interface Model
public void setDeleted(Boolean deleted)
setDeleted
in interface Model
public Boolean getIsNewInsert()
Model
getIsNewInsert
in interface Model
public void setIsNewInsert(Boolean isNewInsert)
setIsNewInsert
in interface Model
public String getCompoundId()
getCompoundId
in interface Model
public String getBucket()
Model
public Long getLastModifiedMillis()
Model
getLastModifiedMillis
in interface Model
public <Y extends Model> Y setLastModifiedMillis(Long lastModifiedMillis)
setLastModifiedMillis
in interface Model
Copyright © 2016. All rights reserved.