public class MorpheusModel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
config |
protected java.lang.Long |
id
Database reference Id of the Object.
|
| Constructor and Description |
|---|
MorpheusModel() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfig() |
java.util.Map |
getConfigMap() |
java.lang.Object |
getConfigProperty(java.lang.String prop) |
java.util.Set<java.lang.String> |
getDirtyProperties()
Gets a list of all dirty properties / fields (things that have changes) on the corresponding model based on the
used setters.
|
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getDirtyPropertyValues()
Gets a Map containing all dirty properties as well as their newly assigned values.
|
java.lang.Long |
getId()
Gets the uniquely generated ID from the database record stored via the Morpheus appliance.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getProperties() |
void |
markClean()
Marks the corresponding Model clean from all changes.
|
protected void |
markDirty(java.lang.String propertyName,
java.lang.Object value)
All setters that are presented to the morpheus API should call markDirty with a string representation of the fieldname.
|
void |
setConfig(java.lang.String config) |
void |
setConfigMap(java.util.Map<java.lang.String,java.lang.Object> map) |
void |
setId(java.lang.Long id)
Used for setting the unique ID of the Pool Type.
|
protected java.lang.Long id
protected java.lang.String config
public java.lang.Long getId()
public void setId(java.lang.Long id)
id - unique identiferprotected void markDirty(java.lang.String propertyName,
java.lang.Object value)
MorpheusContext to reconcile differences and perform differential updates.propertyName - Name of the property that has been changedvalue - The newly assigned value the property has been given.public void markClean()
public java.util.Set<java.lang.String> getDirtyProperties()
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getDirtyPropertyValues()
public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
public java.lang.String getConfig()
public void setConfig(java.lang.String config)
public java.util.Map getConfigMap()
public void setConfigMap(java.util.Map<java.lang.String,java.lang.Object> map)
public java.lang.Object getConfigProperty(java.lang.String prop)