|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.corrspt.xeo.tests.AbstractJSONImplementation
public abstract class AbstractJSONImplementation
| Field Summary | |
|---|---|
protected JSONObject |
attributes
|
protected static java.lang.String |
BOUI
|
protected java.util.Map<java.lang.String,java.util.List<BaseModel>> |
bridges
|
protected static java.lang.String |
CHANGED
|
protected static java.lang.String |
CLASSNAME
|
protected static java.lang.String |
DISABLED
|
protected static java.lang.String |
EXISTS
|
protected java.util.Map<java.lang.String,netgest.io.iFile> |
ifiles
|
protected static java.lang.String |
OBJ_ATTRIBUTE_ERRORS
|
protected static java.lang.String |
OBJ_ERRORS
|
protected BaseModel |
parent
|
protected static java.lang.String |
PARENT
|
protected java.util.Map<java.lang.String,BaseModel> |
relations
|
protected static java.lang.String |
SYS_DTCREATE
|
protected static java.lang.String |
SYS_UPDATE
|
protected JSONObject |
system
|
| Constructor Summary | |
|---|---|
protected |
AbstractJSONImplementation()
|
protected |
AbstractJSONImplementation(JSONObject definition)
|
| Method Summary | |
|---|---|
void |
addErrorMessage(java.lang.String errorMessage)
Adds a new error message to the instance |
void |
clearAttributeErrors()
Clears all errors associated to attributes |
void |
clearErrors()
Clears the list of errors (instance and object) |
void |
clearObjectErrors()
Clears errors of the instance |
protected boolean |
contains(java.lang.String key)
|
void |
destroy()
Deletes this instance |
void |
disable()
Disables all attributes in the instance |
void |
enable()
Enables the instance (sets all attributes to enabled) |
boolean |
exists()
Checks whether the object is persisted in the database or not |
protected java.lang.String |
get(java.lang.String key)
|
protected java.lang.Boolean |
getBoolean(java.lang.String key)
|
protected boolean |
getBoolSys(java.lang.String key)
|
BOUI |
getBoui()
Retrieves the BOUI of the instance |
java.lang.String |
getCardId()
Retrieves the textual card id |
java.lang.String |
getCardIdIcon()
Retrieves the CardId with the icon as a string |
protected java.util.Date |
getDate(java.lang.String key)
|
java.util.Date |
getDateCreate()
Retrieve the date of creation for this object |
java.util.Date |
getDateLastUpdate()
Retrieve the date of the last update to this instance |
netgest.bo.runtime.EboContext |
getEboContext()
Retrieves the EboContext associated to this object |
protected java.lang.Long |
getLong(java.lang.String key)
|
protected long |
getLongSys(java.lang.String key)
|
netgest.bo.runtime.boObject |
getOriginal()
Retrieves the original instance |
BaseModel |
getParent()
Returns the parent object for this instance |
protected java.lang.String |
getString(java.lang.String key)
|
protected java.lang.String |
getStringSys(java.lang.String key)
|
java.lang.String |
getXeoModelName()
Retrieve the name of the Model |
boolean |
hasAttributeErrors()
Checks whether the instance has errors in its attributes |
boolean |
hasErrors()
Checks whether the instance has errors (either object or attribute errors) |
boolean |
hasErrorsInObjectOnly()
Checks whether there are errors in the instance (does not include attribute errors) |
boolean |
hasParent()
Checks whether this object has a parent object |
boolean |
isChanged()
Whether the instance was changed since it was first loaded |
boolean |
isDisabled()
Checks whether the instance is disabled not |
boolean |
isEnabled()
Checks whether the instance is enabled or not |
boolean |
isSame(BaseModel o)
Whether the instance is the same as the passed one |
boolean |
isValid()
Whether the instance is valid or not |
protected void |
markChanged()
|
protected void |
put(java.lang.String key,
java.lang.Object value)
|
protected void |
putSystem(java.lang.String key,
java.lang.Object value)
|
protected void |
removeKey(java.lang.String key)
|
void |
setParent(BaseModel parent)
Sets the parent for this instance |
void |
update()
Saves the instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String EXISTS
protected static final java.lang.String CHANGED
protected static final java.lang.String DISABLED
protected static final java.lang.String CLASSNAME
protected static final java.lang.String SYS_DTCREATE
protected static final java.lang.String SYS_UPDATE
protected static final java.lang.String PARENT
protected static final java.lang.String OBJ_ERRORS
protected static final java.lang.String OBJ_ATTRIBUTE_ERRORS
protected static final java.lang.String BOUI
protected JSONObject attributes
protected java.util.Map<java.lang.String,netgest.io.iFile> ifiles
protected java.util.Map<java.lang.String,BaseModel> relations
protected java.util.Map<java.lang.String,java.util.List<BaseModel>> bridges
protected BaseModel parent
protected JSONObject system
| Constructor Detail |
|---|
protected AbstractJSONImplementation(JSONObject definition)
protected AbstractJSONImplementation()
| Method Detail |
|---|
protected void put(java.lang.String key,
java.lang.Object value)
protected boolean contains(java.lang.String key)
protected void removeKey(java.lang.String key)
protected void markChanged()
protected void putSystem(java.lang.String key,
java.lang.Object value)
protected java.lang.String get(java.lang.String key)
protected java.lang.String getString(java.lang.String key)
protected java.util.Date getDate(java.lang.String key)
protected java.lang.Long getLong(java.lang.String key)
protected java.lang.Boolean getBoolean(java.lang.String key)
protected boolean getBoolSys(java.lang.String key)
protected long getLongSys(java.lang.String key)
protected java.lang.String getStringSys(java.lang.String key)
public void update()
throws netgest.bo.runtime.boRuntimeException
BaseModel
update in interface BaseModelnetgest.bo.runtime.boRuntimeException
public void destroy()
throws netgest.bo.runtime.boRuntimeException
BaseModel
destroy in interface BaseModelnetgest.bo.runtime.boRuntimeExceptionpublic netgest.bo.runtime.boObject getOriginal()
BaseModel
getOriginal in interface BaseModelboObject instancepublic java.lang.String getCardId()
BaseModel
getCardId in interface BaseModelpublic java.lang.String getCardIdIcon()
BaseModel
getCardIdIcon in interface BaseModelpublic java.lang.String getXeoModelName()
BaseModel
getXeoModelName in interface BaseModelpublic void addErrorMessage(java.lang.String errorMessage)
BaseModel
addErrorMessage in interface BaseModelerrorMessage - The error messagepublic boolean hasErrors()
BaseModel
hasErrors in interface BaseModelpublic boolean hasAttributeErrors()
BaseModel
hasAttributeErrors in interface BaseModelpublic boolean hasErrorsInObjectOnly()
BaseModel
hasErrorsInObjectOnly in interface BaseModelpublic boolean exists()
BaseModel
exists in interface BaseModelpublic void clearErrors()
BaseModel
clearErrors in interface BaseModelpublic void clearObjectErrors()
BaseModel
clearObjectErrors in interface BaseModelpublic void clearAttributeErrors()
BaseModel
clearAttributeErrors in interface BaseModelpublic boolean isChanged()
BaseModel
isChanged in interface BaseModelpublic void disable()
BaseModel
disable in interface BaseModelpublic boolean isDisabled()
BaseModel
isDisabled in interface BaseModelpublic void enable()
BaseModel
enable in interface BaseModelpublic boolean isEnabled()
BaseModel
isEnabled in interface BaseModelpublic void setParent(BaseModel parent)
BaseModel
setParent in interface BaseModelparent - The parentpublic netgest.bo.runtime.EboContext getEboContext()
BaseModel
getEboContext in interface BaseModelpublic BOUI getBoui()
BaseModel
getBoui in interface BaseModelpublic java.util.Date getDateCreate()
BaseModel
getDateCreate in interface BaseModelpublic java.util.Date getDateLastUpdate()
BaseModel
getDateLastUpdate in interface BaseModelpublic boolean hasParent()
BaseModel
hasParent in interface BaseModelpublic BaseModel getParent()
BaseModel
getParent in interface BaseModelpublic boolean isSame(BaseModel o)
BaseModel
isSame in interface BaseModelo - The instance to compare
public boolean isValid()
BaseModel
isValid in interface BaseModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||