|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 BaseModel
netgest.bo.runtime.boRuntimeException
public void destroy() throws netgest.bo.runtime.boRuntimeException
BaseModel
destroy
in interface BaseModel
netgest.bo.runtime.boRuntimeException
public netgest.bo.runtime.boObject getOriginal()
BaseModel
getOriginal
in interface BaseModel
boObject
instancepublic java.lang.String getCardId()
BaseModel
getCardId
in interface BaseModel
public java.lang.String getCardIdIcon()
BaseModel
getCardIdIcon
in interface BaseModel
public java.lang.String getXeoModelName()
BaseModel
getXeoModelName
in interface BaseModel
public void addErrorMessage(java.lang.String errorMessage)
BaseModel
addErrorMessage
in interface BaseModel
errorMessage
- The error messagepublic boolean hasErrors()
BaseModel
hasErrors
in interface BaseModel
public boolean hasAttributeErrors()
BaseModel
hasAttributeErrors
in interface BaseModel
public boolean hasErrorsInObjectOnly()
BaseModel
hasErrorsInObjectOnly
in interface BaseModel
public boolean exists()
BaseModel
exists
in interface BaseModel
public void clearErrors()
BaseModel
clearErrors
in interface BaseModel
public void clearObjectErrors()
BaseModel
clearObjectErrors
in interface BaseModel
public void clearAttributeErrors()
BaseModel
clearAttributeErrors
in interface BaseModel
public boolean isChanged()
BaseModel
isChanged
in interface BaseModel
public void disable()
BaseModel
disable
in interface BaseModel
public boolean isDisabled()
BaseModel
isDisabled
in interface BaseModel
public void enable()
BaseModel
enable
in interface BaseModel
public boolean isEnabled()
BaseModel
isEnabled
in interface BaseModel
public void setParent(BaseModel parent)
BaseModel
setParent
in interface BaseModel
parent
- The parentpublic netgest.bo.runtime.EboContext getEboContext()
BaseModel
getEboContext
in interface BaseModel
public BOUI getBoui()
BaseModel
getBoui
in interface BaseModel
public java.util.Date getDateCreate()
BaseModel
getDateCreate
in interface BaseModel
public java.util.Date getDateLastUpdate()
BaseModel
getDateLastUpdate
in interface BaseModel
public boolean hasParent()
BaseModel
hasParent
in interface BaseModel
public BaseModel getParent()
BaseModel
getParent
in interface BaseModel
public boolean isSame(BaseModel o)
BaseModel
isSame
in interface BaseModel
o
- 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 |