|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.loribel.commons.business.GB_BusinessObjectSimpleAbstract
Default implementation for BusinessObject.
| Field Summary | |
protected java.lang.String |
boName
|
protected GB_SimpleBusinessObjectSet |
boParent
|
protected boolean |
modified
|
protected boolean |
readOnly
|
protected java.util.Map |
valueMap
|
| Constructor Summary | |
GB_BusinessObjectSimpleAbstract(java.lang.String a_boName)
|
|
| Method Summary | |
void |
addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Add a value for the property a_propertyName |
java.lang.String |
getBOName()
Returns the BO Name of the objet. |
GB_SimpleBusinessObjectSet |
getBoParent()
|
GB_SimpleBOValue |
getBOValue(java.lang.String a_propertyName)
Return the BusinessObjectValue associated to a property. |
java.lang.String |
getLabelInfo()
Vous pouvez redéfinir cette méthode si vous voulez afficher plus d'info sur vos objets. |
java.lang.Object |
getPropertyValue(java.lang.String a_propertyName)
Returns the value associated to a property. |
void |
installMemento(GB_Memento a_memento)
Install a memento for this BusinessObject. |
boolean |
isModified()
Returns true if this object has been modified. |
boolean |
isReadOnly()
Returns true if the businessObject is ReadOnly. |
GB_Memento |
newMemento()
Create a new memento for this BusinessObject. |
void |
putPropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name,
java.lang.Object a_value)
Add a value for the property a_propertyName |
void |
removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Remove a value for the property a_propertyName |
void |
removePropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name)
Remove a value for the property a_propertyName |
void |
setBoParent(GB_SimpleBusinessObjectSet a_boParent)
|
void |
setModified(boolean a_modified)
|
void |
setReadOnly(boolean a_readOnly)
Set the businessObject read-only. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBusinessObjectSet |
setPropertyValue |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBusinessObject |
getProperty, getPropertyNames |
| Field Detail |
protected java.lang.String boName
protected GB_SimpleBusinessObjectSet boParent
protected boolean modified
protected boolean readOnly
protected java.util.Map valueMap
| Constructor Detail |
public GB_BusinessObjectSimpleAbstract(java.lang.String a_boName)
| Method Detail |
public void addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
GB_SimpleBusinessObjectSet
addPropertyValue in interface GB_SimpleBusinessObjectSeta_propertyName - String -a_value - Object -public java.lang.String getBOName()
GB_SimpleBusinessObject
getBOName in interface GB_SimpleBusinessObjectpublic GB_SimpleBusinessObjectSet getBoParent()
getBoParent in interface GB_BOParentOwnerpublic GB_SimpleBOValue getBOValue(java.lang.String a_propertyName)
GB_BOValueOwner
getBOValue in interface GB_BOValueOwnera_propertyName - String -
public java.lang.Object getPropertyValue(java.lang.String a_propertyName)
GB_SimpleBusinessObject
getPropertyValue in interface GB_SimpleBusinessObjecta_propertyName - String -
public void installMemento(GB_Memento a_memento)
installMemento in interface GB_MementoComplianta_memento - GB_Memento - the memento to usepublic boolean isModified()
GB_SimpleBusinessObject
isModified in interface GB_SimpleBusinessObjectpublic boolean isReadOnly()
GB_SimpleBusinessObject
isReadOnly in interface GB_SimpleBusinessObjectpublic GB_Memento newMemento()
newMemento in interface GB_MementoCompliant
public void putPropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name,
java.lang.Object a_value)
GB_SimpleBusinessObjectSet
putPropertyValueMap in interface GB_SimpleBusinessObjectSeta_propertyName - String -a_value - Object -
public void removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
GB_SimpleBusinessObjectSet
removePropertyValue in interface GB_SimpleBusinessObjectSeta_propertyName - String -a_value - Object -
public void removePropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name)
GB_SimpleBusinessObjectSet
removePropertyValueMap in interface GB_SimpleBusinessObjectSeta_propertyName - String -public void setBoParent(GB_SimpleBusinessObjectSet a_boParent)
setBoParent in interface GB_BOParentOwnerSetpublic void setModified(boolean a_modified)
setModified in interface GB_SimpleBusinessObjectSetpublic void setReadOnly(boolean a_readOnly)
GB_SimpleBusinessObjectSet
setReadOnly in interface GB_SimpleBusinessObjectSetpublic java.lang.String getLabelInfo()
getLabelInfo in interface GB_LabelInfoOwner
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||