public interface BusinessObject
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ObjectVisitor visitor)
Visitor pattern is implemented for the business object to allow visiting
each component of a business object using a custom visitor.
|
void |
activate()
Activate a business object
|
CustomAttribute |
createAttribute(java.lang.String name,
AttributeType attrType)
Create a custom attribute for the given name and type.
|
CustomAttribute |
createAttribute(java.lang.String name,
java.lang.String type)
Create a custom attribute for the given name and type.
|
BusinessObjectFunction |
createFunction(java.lang.String name,
java.lang.String returnType,
java.lang.String body)
Create a function for this business object.
|
BusinessObjectTrigger |
createTrigger(BusinessObjectTriggerType triggerType,
java.lang.String name,
java.lang.String triggerDefinition,
java.lang.String errorMessage)
Create a trigger for this business object.
|
BusinessObjectValidator |
createValidator(java.lang.String name,
java.lang.String ruleDefinition,
java.lang.String errorMessage)
Create a validator for this business object.
|
void |
deleteAttribute(CustomAttribute attr)
Delete a custom attribute.
|
void |
deleteFunction(BusinessObjectFunction function)
Delete a function from this business object.
|
void |
deleteTrigger(BusinessObjectTrigger trigger)
Delete a trigger from this business object.
|
void |
deleteValidator(BusinessObjectValidator validator)
Delete a validator from this business object.
|
void |
deprecate()
Deprecate a business object
|
void |
depublishRESTWebService()
Depublish REST web service for the custom object
|
Attribute |
findAttribute(java.lang.String name)
Retrive the attribute of the given name.
|
BusinessObjectFunction |
findFunction(java.lang.String name)
Retrive the function of the given name.
|
BusinessObjectTrigger |
findTrigger(java.lang.String name)
Retrieve the trigger of the given name.
|
BusinessObjectValidator |
findValidator(java.lang.String name)
Retrive the validator of the given name.
|
java.lang.String |
getAPIName()
Returns the API name of the object.
|
java.util.Collection<Attribute> |
getAttributes()
Retrieve all attributes for this business object.
|
java.lang.String |
getAutoNumberPattern()
Returns the auto number pattern of the object.
|
java.lang.String |
getChildCollectionName()
Return the internal name of the child object records set.
|
java.util.Collection<CustomAttribute> |
getCustomAttributes()
Retrieve all custom attributes for this business object.
|
java.lang.String |
getDescription()
Returns the description of the object.
|
java.lang.String |
getDisplayLabel()
Returns the display label of the object.
|
java.lang.String |
getDisplayNamePlural()
Returns the plural display label of the object.
|
java.lang.String |
getFullName()
Returns the full name of the object.
|
java.util.Collection<BusinessObjectFunction> |
getFunctions()
Retrieve all functions for the business object.
|
java.lang.String |
getName()
Returns the name of the object.
|
BusinessObject |
getParent()
Return the parent object if the business object is a child object.
|
java.lang.String |
getRecordNameLabel()
Returns the record name label of the object.
|
java.util.Collection<StandardAttribute> |
getStandardAttributes()
Retrieve all standard attributes for this business object.
|
java.util.Collection<BusinessObjectTrigger> |
getTriggers()
Retrieve all triggers for this business object.
|
java.util.Collection<BusinessObjectValidator> |
getValidators()
Retrieve all validators for this business object.
|
boolean |
isCustomObject()
Return if a business object is a custom object
|
boolean |
isDeprecated()
Return if a business object is deprecated
|
boolean |
isRemovable()
Return if business object is removable.
|
boolean |
isRESTEnabledForDELETE()
Return if DELETE operation is enabled for REST web service
|
boolean |
isRESTEnabledForGET()
Return if GET operation is enabled for REST web service
|
boolean |
isRESTEnabledForPOST()
Return if POST operation is enabled for REST web service
|
boolean |
isRESTEnabledForPUT()
Return if PUT operation is enabled for REST web service
|
boolean |
isRESTWebServicePublished()
Return if REST web service is published for the business object
|
void |
publishRESTWebService()
Publish REST web service for the custom object
|
void |
setAutoNumberPattern(java.lang.String value)
Set the auto number pattern of the object.
|
void |
setChildCollectionName(java.lang.String childCollectionName)
Set the name of the child object records set
|
void |
setDescription(java.lang.String description)
Set the description of the object.
|
void |
setDisplayLabel(java.lang.String text)
Set the display label of the object.
|
void |
setDisplayNamePlural(java.lang.String value)
Set the plural display label of the object.
|
void |
setRecordNameLabel(java.lang.String value)
Set the record name label of the object.
|
void |
setRESTEnabledForDELETE(boolean enabled)
Set if DELETE operation is enabled for REST web service
|
void |
setRESTEnabledForGET(boolean enabled)
Set if GET operation is enabled for REST web service
|
void |
setRESTEnabledForPOST(boolean enabled)
Set if POST operation is enabled for REST web service
|
void |
setRESTEnabledForPUT(boolean enabled)
Set if PUT operation is enabled for REST web service
|
java.util.Collection<Attribute> getAttributes()
java.util.Collection<StandardAttribute> getStandardAttributes()
java.util.Collection<CustomAttribute> getCustomAttributes()
Attribute findAttribute(java.lang.String name)
name - name of the attribute.CustomAttribute createAttribute(java.lang.String name, AttributeType attrType)
name - name of the attributeattrType - type of the attribute in AttributeTypeoracle.jbo.JboException - if an attribute for the given name already exists.CustomAttribute createAttribute(java.lang.String name, java.lang.String type)
name - name of the attributetype - type of the attribute in String. It isoracle.jbo.JboException - if an attribute for the given name already exists.void deleteAttribute(CustomAttribute attr)
attr - custom attribute to be deletedoracle.jbo.JboException - if attribute is null or if attribute cannot be deletedjava.util.Collection<BusinessObjectValidator> getValidators()
BusinessObjectValidator findValidator(java.lang.String name)
name - name of the validator.BusinessObjectValidator createValidator(java.lang.String name, java.lang.String ruleDefinition, java.lang.String errorMessage)
name - name of the validatorruleDefinition - rule definition of the validatorerrorMessage - error message of the validatororacle.jbo.JboException - if an validator for the given name already exists.void deleteValidator(BusinessObjectValidator validator)
validator - name of the validatororacle.jbo.JboException - if validator is null.java.util.Collection<BusinessObjectTrigger> getTriggers()
BusinessObjectTrigger findTrigger(java.lang.String name)
name - name of the trigger.BusinessObjectTrigger createTrigger(BusinessObjectTriggerType triggerType, java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
triggerType - type of the trigger.name - name of the trigger.triggerDefinition - trigger definition of the triggererrorMessage - error message of the triggeroracle.jbo.JboException - if an trigger for the given name already exists.void deleteTrigger(BusinessObjectTrigger trigger)
trigger - name of the triggeroracle.jbo.JboException - if an trigger is nulljava.util.Collection<BusinessObjectFunction> getFunctions()
BusinessObjectFunction findFunction(java.lang.String name)
name - name of the function.BusinessObjectFunction createFunction(java.lang.String name, java.lang.String returnType, java.lang.String body)
name - name of the function.returnType - return type of the functionbody - function body of the functionoracle.jbo.JboException - if an function for the given name already exists.void deleteFunction(BusinessObjectFunction function)
function - function to be deletedoracle.jbo.JboException - if function is nullvoid setDisplayLabel(java.lang.String text)
text - display label of the objectjava.lang.String getDisplayLabel()
void setDisplayNamePlural(java.lang.String value)
value - plural display label of the objectjava.lang.String getDisplayNamePlural()
void setRecordNameLabel(java.lang.String value)
value - record name label of the objectoracle.jbo.JboException - if it is not a custom business objectjava.lang.String getRecordNameLabel()
void setAutoNumberPattern(java.lang.String value)
value - auto number pattern of the objectoracle.jbo.JboException - if it is not a custom business objectjava.lang.String getAutoNumberPattern()
java.lang.String getName()
void setDescription(java.lang.String description)
java.lang.String getDescription()
java.lang.String getFullName()
java.lang.String getAPIName()
BusinessObject getParent()
void setChildCollectionName(java.lang.String childCollectionName)
childCollectionName - the name of the child object records setjava.lang.String getChildCollectionName()
boolean isRemovable()
void publishRESTWebService()
void depublishRESTWebService()
boolean isRESTWebServicePublished()
void setRESTEnabledForGET(boolean enabled)
boolean isRESTEnabledForGET()
void setRESTEnabledForPOST(boolean enabled)
boolean isRESTEnabledForPOST()
void setRESTEnabledForPUT(boolean enabled)
boolean isRESTEnabledForPUT()
void setRESTEnabledForDELETE(boolean enabled)
boolean isRESTEnabledForDELETE()
void deprecate()
void activate()
boolean isDeprecated()
boolean isCustomObject()
void accept(ObjectVisitor visitor)
ObjectVisitor (or extends
BaseObjectVisitor), one can call BusinessObject.accept(visitor)
which will transverse all the objects inside a business object.visitor - The visitor object