|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseModel
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 |
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 |
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 |
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 |
netgest.bo.runtime.boObject |
getOriginal()
Retrieves the original instance |
BaseModel |
getParent()
Returns the parent object for this instance |
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 |
void |
setParent(BaseModel parent)
Sets the parent for this instance |
void |
update()
Saves the instance |
Method Detail |
---|
void update() throws netgest.bo.runtime.boRuntimeException
netgest.bo.runtime.boRuntimeException
void destroy() throws netgest.bo.runtime.boRuntimeException
netgest.bo.runtime.boRuntimeException
netgest.bo.runtime.boObject getOriginal()
boObject
instancejava.lang.String getCardId()
java.lang.String getCardIdIcon()
java.lang.String getXeoModelName()
void addErrorMessage(java.lang.String errorMessage)
errorMessage
- The error messageboolean hasErrors()
boolean hasAttributeErrors()
boolean hasErrorsInObjectOnly()
boolean exists()
void clearErrors()
void clearObjectErrors()
void clearAttributeErrors()
boolean isChanged()
void disable()
boolean isDisabled()
void enable()
boolean isEnabled()
void setParent(BaseModel parent)
parent
- The parentnetgest.bo.runtime.EboContext getEboContext()
BOUI getBoui()
java.util.Date getDateCreate()
java.util.Date getDateLastUpdate()
boolean hasParent()
BaseModel getParent()
boolean isSame(BaseModel o)
o
- The instance to compare
boolean isValid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |