|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.loribel.commons.business.GB_BusinessObjectAbstract
Default abstract implementattion of GB_SimpleBusinessObject.
By default, the management of the values are delegated to GB_SimpleBOValue.
| Constructor Summary | |
GB_BusinessObjectAbstract()
Constructor of GB_SimpleBusinessObjectAbstract without parameter. |
|
| Method Summary | |
void |
addAllPropertyValues(java.lang.String a_propertyName,
java.util.Collection a_values)
Add some new values to a property of this businessObject. |
void |
addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Add or set a value to this businessObject. |
void |
addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
Add or set a value to this businessObject. |
protected void |
addPropertyValueMulti(java.lang.String a_propertyName,
java.lang.Object a_value)
Add a value to a property that accepts Multi values. |
protected void |
addPropertyValueMulti(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
Add a value to a property that accepts Multi values. |
protected java.lang.String |
appendToString()
|
protected java.util.Map |
buildBOValueMap()
Method to init businessObjectValueMap. |
protected java.util.Map |
buildPropertyMap()
Method to init propertyMap. |
protected java.util.List |
buildPropertyNames()
Method to init propertyNames. |
boolean |
containsPropertyName(java.lang.String a_propertyName)
Returns true if the list propertyNames contains this PropertyName. |
java.lang.String |
getBOName()
Get Business Object name of the BusinessObject. |
GB_SimpleBusinessObjectSet |
getBoParent()
|
GB_SimpleBOValue |
getBOValue(java.lang.String a_propertyName)
Return the BusinessObjectValue, value of Map businessObjectValueMap associated with the key a_propertyName. |
protected GB_ValuesMapOwnerSet |
getBOValueMap(java.lang.String a_propertyName)
|
protected GB_ValuesOwnerSet |
getBOValueMulti(java.lang.String a_propertyName)
Return the container of values for property that accepts multi values. |
java.util.Map |
getBusinessObjectValueMap()
Get Map of values for property.. |
java.lang.String |
getLabelInfo()
Vous pouvez redéfinir cette méthode si vous voulez afficher plus d'info sur vos objets. |
GB_BOProperty |
getProperty(java.lang.String a_propertyName)
Return the Property, value of Map propertyMap associated with the key a_propertyName. |
GB_BOProperty[] |
getPropertyArray()
Return an array with all the properties of this BusinessObject. |
int |
getPropertyCount()
Returns the number of PropertyNames in the list propertyNames. |
java.util.Map |
getPropertyMap()
Méthode getPropertyMap. |
java.lang.String[] |
getPropertyNames()
Return a String array with all the property names of this BusinessObject. |
java.lang.Object |
getPropertyValue(java.lang.String a_propertyName)
Returns the value for a property. |
int |
getPropertyValueIndex(java.lang.String a_propertyName,
java.lang.Object a_value)
|
java.util.Collection |
getPropertyValueList(java.lang.String a_propertyName)
Return the list of values for property that accepts Multi values. |
java.util.Map |
getPropertyValueMap(java.lang.String a_propertyName)
|
void |
installMemento(GB_Memento a_memento)
Install a memento for this BusinessObject. |
boolean |
isModified()
Returns true if this object has been modified. |
GB_Memento |
newMemento()
Create a new memento for this BusinessObject. |
GB_Memento |
newMemento(boolean a_deep)
|
protected java.lang.Object |
putBOValue(java.lang.String a_propertyName,
GB_SimpleBOValue a_value)
Add a value to the Map businessObjectValueMap. |
void |
putPropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name,
java.lang.Object a_value)
Add a value to a property that accepts Multi values. |
void |
removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Remove a value for a specific property. |
void |
removePropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name)
Remove a value for the property a_propertyName |
void |
setBOName(java.lang.String a_bOName)
Set Business Object name of the BusinessObject. |
void |
setBoParent(GB_SimpleBusinessObjectSet a_boParent)
|
void |
setModified(boolean a_modified)
|
void |
setPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
Set the value to a property that accepts single values. |
java.lang.String |
toString()
|
void |
updateWithDefaultValues()
Update values of this objects with default values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBusinessObjectSet |
setReadOnly |
| Methods inherited from interface com.loribel.commons.business.abstraction.GB_SimpleBusinessObject |
isReadOnly |
| Constructor Detail |
public GB_BusinessObjectAbstract()
| Method Detail |
public void addAllPropertyValues(java.lang.String a_propertyName,
java.util.Collection a_values)
a_propertyName - String -a_values - Collection -
public void addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
a_propertyName - String -a_value - Object -
public void addPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
addPropertyValue in interface GB_SimpleBusinessObjectSeta_propertyName - String -a_value - Object -
protected void addPropertyValueMulti(java.lang.String a_propertyName,
java.lang.Object a_value,
int a_index)
a_propertyName - String - a_propertyNamea_value - Object - a_value
public int getPropertyValueIndex(java.lang.String a_propertyName,
java.lang.Object a_value)
protected void addPropertyValueMulti(java.lang.String a_propertyName,
java.lang.Object a_value)
a_propertyName - String - a_propertyNamea_value - Object - a_valueprotected java.util.Map buildBOValueMap()
This method is called by getBusinessObjectValueMap() to set the
value of businessObjectValueMap the first time.
protected java.util.Map buildPropertyMap()
This method is called by getPropertyMap() to set the value of
propertyMap the first time.
protected java.util.List buildPropertyNames()
This method is called by #getPropertyNameList() to set the value of
propertyNames the first time.
public boolean containsPropertyName(java.lang.String a_propertyName)
a_propertyName - String - element whose presence in the list is to be tested
public java.lang.String getBOName()
getBOName in interface GB_SimpleBusinessObjectpublic GB_SimpleBusinessObjectSet getBoParent()
getBoParent in interface GB_BOParentOwnerpublic GB_SimpleBOValue getBOValue(java.lang.String a_propertyName)
getBOValue in interface GB_BOValueOwnera_propertyName - String - name of the property
protected GB_ValuesMapOwnerSet getBOValueMap(java.lang.String a_propertyName)
protected GB_ValuesOwnerSet getBOValueMulti(java.lang.String a_propertyName)
a_propertyName - String -
public java.util.Map getBusinessObjectValueMap()
public GB_BOProperty getProperty(java.lang.String a_propertyName)
getProperty in interface GB_SimpleBusinessObjecta_propertyName - String -
public GB_BOProperty[] getPropertyArray()
public int getPropertyCount()
public java.util.Map getPropertyMap()
Use the method buildPropertyMap() to init the property the first time.
public java.lang.String[] getPropertyNames()
getPropertyNames in interface GB_SimpleBusinessObjectpublic java.lang.Object getPropertyValue(java.lang.String a_propertyName)
getPropertyValue in interface GB_SimpleBusinessObjecta_propertyName - String -
public java.util.Collection getPropertyValueList(java.lang.String a_propertyName)
a_propertyName - String - a_propertyName
public java.util.Map getPropertyValueMap(java.lang.String a_propertyName)
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 GB_Memento newMemento()
newMemento in interface GB_MementoCompliantpublic GB_Memento newMemento(boolean a_deep)
protected java.lang.Object putBOValue(java.lang.String a_propertyName,
GB_SimpleBOValue a_value)
a_propertyName - String - name of the propertya_value - GB_SimpleBusinessObjectValue - value of the property
public void putPropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name,
java.lang.Object a_value)
putPropertyValueMap in interface GB_SimpleBusinessObjectSeta_propertyName - String - a_propertyNamea_value - Object - a_value
public void removePropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
removePropertyValue in interface GB_SimpleBusinessObjectSeta_propertyName - String - a_propertyNamea_value - Object - a_value
public void removePropertyValueMap(java.lang.String a_propertyName,
java.lang.String a_name)
GB_SimpleBusinessObjectSet
removePropertyValueMap in interface GB_SimpleBusinessObjectSeta_propertyName - String -public void setBOName(java.lang.String a_bOName)
a_bOName - String - bONamepublic void setBoParent(GB_SimpleBusinessObjectSet a_boParent)
setBoParent in interface GB_BOParentOwnerSetpublic void setModified(boolean a_modified)
setModified in interface GB_SimpleBusinessObjectSet
public void setPropertyValue(java.lang.String a_propertyName,
java.lang.Object a_value)
setPropertyValue in interface GB_SimpleBusinessObjectSeta_propertyName - String - a_propertyNamea_value - Object - a_valuepublic void updateWithDefaultValues()
public java.lang.String toString()
protected java.lang.String appendToString()
public 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 | ||||||||||