public interface BusinessObject
findAttribute(java.lang.String)
can be used to retrieve the attributes that can be used as
list display and search attribute for dymanic choice list. No other methods are supported.
Use isCustomizable()
to identify if a business object is customizable.
Note that new methods may be added to this interface without notice. Do
not extend this interface for custom classes.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,
java.lang.String... paramTypes)
Retrieves the function with the given name for the business object.
|
java.util.Collection<BusinessObjectFunction> |
findFunctions(java.lang.String name)
Retrieves all functions with the name for the business object.
|
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()
For customizable business object, this method will return all standard and custom 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.util.Map<java.lang.String,java.lang.String> |
getCustomProperties(java.lang.String namespace)
Return a map of custom properties for the attribute with the given namespace
|
java.lang.String |
getCustomProperty(java.lang.String namespace,
java.lang.String name)
Return the value of the custom property with the given namespace and name
|
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.
|
Attribute |
getSortByAttribute()
Returns the sort by attribute 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 |
isCaseSensitiveRecordNameUniqueness()
Returns true if a custom business object enforces unique record names
in a case-sensitive way
|
boolean |
isCustomizable()
Return if a business object can be customized.
|
boolean |
isCustomObject()
Return if a business object is a custom object
|
boolean |
isDeprecated()
Return if a business object is deprecated
|
boolean |
isEnforceUniqueRecordName()
Returns true if a custom business object enforces unique record names
|
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
|
boolean |
isSortByAscending()
Returns the sort by direction of the 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 |
setCaseSensitiveRecordNameUniqueness(boolean caseSensitive)
Determines whether a custom business object enforces unique record names
in a case-sensitive way.
|
void |
setChildCollectionName(java.lang.String childCollectionName)
Set the name of the child object records set
|
void |
setCustomProperty(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
Create or update a custom property of the given namespace and name with
the value
|
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 |
setEnforceUniqueRecordName(boolean uniqueRecName)
Determines whether a custom business object enforces unique record names
|
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
|
void |
setSortBy(Attribute attribute,
boolean ascending)
Set the sort by attribute name and direction of the object.
|
java.util.Collection<Attribute> getAttributes()
isCustomizable()
to identify if a business object is customizable.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, java.lang.String... paramTypes)
name
- name of the business object function to be returnedparamTypes
- parameter types for functionjava.util.Collection<BusinessObjectFunction> findFunctions(java.lang.String name)
name
- name of the functions to be returnedBusinessObjectFunction 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 objectjava.lang.String getRecordNameLabel()
void setSortBy(Attribute attribute, boolean ascending)
attribute
- sort by attribute on the objectascending
- sort direction, ascending or descending.Attribute getSortByAttribute()
boolean isSortByAscending()
void setAutoNumberPattern(java.lang.String value)
value
- auto number pattern of the objectjava.lang.String getAutoNumberPattern()
java.lang.String getName()
void setDescription(java.lang.String description)
description
- new description to use for objectjava.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)
enabled
- if GET operation should be enabledboolean isRESTEnabledForGET()
void setRESTEnabledForPOST(boolean enabled)
enabled
- if POST operation should be enabledboolean isRESTEnabledForPOST()
void setRESTEnabledForPUT(boolean enabled)
enabled
- if PUT operation should be enabledboolean isRESTEnabledForPUT()
void setRESTEnabledForDELETE(boolean enabled)
enabled
- if DELETE operation should be enabledboolean isRESTEnabledForDELETE()
void deprecate()
void activate()
boolean isDeprecated()
boolean isCustomObject()
boolean isEnforceUniqueRecordName()
void setCaseSensitiveRecordNameUniqueness(boolean caseSensitive)
caseSensitive
- true if it should enforce case sensitiveboolean isCaseSensitiveRecordNameUniqueness()
void setEnforceUniqueRecordName(boolean uniqueRecName)
uniqueRecName
- should it enforce unique record names?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 objectboolean isCustomizable()
java.util.Map<java.lang.String,java.lang.String> getCustomProperties(java.lang.String namespace)
namespace
- namespace to search forjava.lang.String getCustomProperty(java.lang.String namespace, java.lang.String name)
namespace
- namespace to search forname
- name of property to search forvoid setCustomProperty(java.lang.String namespace, java.lang.String name, java.lang.String value)
namespace
- namespace for new propertyname
- name for new propertyvalue
- value for new property