com.loribel.commons.business.abstraction
Interface GB_SimpleBusinessObject

All Superinterfaces:
GB_BOParentOwner, GB_LabelInfoOwner
All Known Subinterfaces:
GB_BOMetaModel, GB_BOSearch, GB_BOShort, GB_BusinessObject, GB_SimpleBusinessObjectSet
All Known Implementing Classes:
GB_BOEnumItemBOGen, GB_BOEnumItemSearchBOGen, GB_BOEnumValuesBOGen, GB_BOEnumValuesGroupBOGen, GB_BOExtendsBOGen, GB_BOExtensionBOGen, GB_BOLinkIdBOGen, GB_BOLinkIdLongBOGen, GB_BOMetaDataBOGen, GB_BOMetaDataSearchBOGen, GB_BOPropertyBOGen, GB_BOPropertySearchBOGen, GB_BOStringMBOGen, GB_BusinessObjectAbstract, GB_BusinessObjectDefault, GB_BusinessObjectSimpleAbstract

public interface GB_SimpleBusinessObject
extends GB_BOParentOwner, GB_LabelInfoOwner

Abstraction of a simple BusinessObject.
A Business Object is defined by a list of property and a list of values :

Author:
Gregory Borelli

Method Summary
 java.lang.String getBOName()
          Returns the BO Name of the objet.
 GB_BOProperty getProperty(java.lang.String a_propertyName)
          Returns the meta data that describe a property.
 java.lang.String[] getPropertyNames()
          Returns an array with the property names of this BusinessObject.
 java.lang.Object getPropertyValue(java.lang.String a_propertyName)
          Returns the value associated to a property.
 boolean isModified()
          Returns true if this object has been modified.
 boolean isReadOnly()
          Returns true if the businessObject is ReadOnly.
 
Methods inherited from interface com.loribel.commons.business.abstraction.GB_BOParentOwner
getBoParent
 
Methods inherited from interface com.loribel.commons.abstraction.GB_LabelInfoOwner
getLabelInfo
 

Method Detail

getBOName

public java.lang.String getBOName()
Returns the BO Name of the objet. It is an important value, because generaly we can retrieve property using the BOFactory.

Returns:
String

getProperty

public GB_BOProperty getProperty(java.lang.String a_propertyName)
Returns the meta data that describe a property.

Parameters:
a_propertyName - String -
Returns:
GB_BOProperty

getPropertyNames

public java.lang.String[] getPropertyNames()
Returns an array with the property names of this BusinessObject.

Returns:
String[]

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String a_propertyName)
Returns the value associated to a property. This method can return a collection of values if necessary

Parameters:
a_propertyName - String -
Returns:
Object

isReadOnly

public boolean isReadOnly()
Returns true if the businessObject is ReadOnly.

Returns:
boolean

isModified

public boolean isModified()
Returns true if this object has been modified. If a complex property has been changed, this method may return false if no direct modifications has beeen done to the simple properties of this object.

Returns:
boolean


Copyright © 2002-2007 Gregory Borelli [Loribel]. All Rights Reserved.