Oracle Fusion Middleware Java API Reference for Oracle ADF Model Business Editor Objects
11g Release 1 (11.1.1.7.0)

E36215-01

oracle.adfinternal.businesseditor.objects
Class BusinessObjectImpl

java.lang.Object
  extended by oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl
      extended by oracle.adfinternal.businesseditor.objects.BusinessEditorObjectImpl
          extended by oracle.adfinternal.businesseditor.objects.BusinessObjectImpl
All Implemented Interfaces:
BusinessObject, ObjectGroupOwner

public final class BusinessObjectImpl
extends BusinessEditorObjectImpl
implements BusinessObject

For internal framework use only. A business object.

For internal use only. Application developers should not use this

Constructor Summary
protected BusinessObjectImpl(BusinessEditorManagerImpl manager, BusinessObject parent, java.lang.String name)
           
protected BusinessObjectImpl(BusinessEditorManagerImpl manager, java.lang.String name, java.lang.String fullName)
           
 
Method Summary
protected  void cancelFlowForExistingObject()
           
protected  void cancelFlowForNewObject()
           
protected  void checkLoadObject()
           
 CustomAttribute createAttribute(java.lang.String name, AttributeType attrType)
          Create a custom attribute for the given name and type.
 CustomAttributeImpl 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.
 BusinessObjectTriggerImpl createTrigger(oracle.jbo.server.TriggerType triggerType, java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
          Create a trigger for this business object.
 BusinessObjectValidatorImpl 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.
protected  void doCommit()
           
protected  void doRollback()
           
 AttributeImpl findAttribute(java.lang.String name)
          Retrive the attribute of the given name.
 BusinessObjectFunctionImpl findFunction(java.lang.String name)
          Retrive the function of the given name.
 BusinessObjectTriggerImpl findTrigger(java.lang.String name)
          Retrieve the trigger of the given name.
 BusinessObjectValidatorImpl findValidator(java.lang.String name)
          Retrive the validator of the given name.
protected  void finishFlowForExistingObject()
           
protected  void finishFlowForNewObject()
           
 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.util.Collection<CustomAttribute> getCustomAttributes()
          Retrieve all custom attributes for this business 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.
 ObjectGroupHelper getGroupHelper(ObjectType type)
           
protected  ObjectType getObjectType()
           
protected  BusinessObject getParent()
           
 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.
protected  oracle.jbo.ViewObject getViewObjectBeingEdited()
           
protected  void initFlowForExistingObject()
           
protected  void initFlowForNewObject()
           
protected  boolean isPropertyUpdateable(java.lang.String property)
           
 boolean isRemovable()
          Return if business object is removable.
protected  void populateAttributeTriggers()
           
protected  void renameFunction(BusinessObjectFunctionImpl function, java.lang.String oldName, java.lang.String newName)
           
protected  void renameTrigger(BusinessObjectTriggerImpl trigger, java.lang.String oldName, java.lang.String newName)
           
protected  void renameValidator(BusinessObjectValidatorImpl validator, java.lang.String oldName, java.lang.String newName)
           
 void setAutoNumberPattern(java.lang.String value)
          Set the auto number pattern 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.
protected  void setParent(BusinessObject parent)
           
 void setRecordNameLabel(java.lang.String value)
          Set the record name label of the object.
 
Methods inherited from class oracle.adfinternal.businesseditor.objects.BusinessEditorObjectImpl
getBusinessEditor, getBusinessEditorLogic, getBusinessEditorManager, getBusinessEditorViewLogic, getDescription, getName, getObjectKey, getProperty, setDescription, setName, setProperty
 
Methods inherited from class oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl
canPopulateChildren, containsProperty, ensureVerified, getContainer, getLocalizedString, getPropertyNoLoad, initialize, isLoaded, isNew, isNotVerified, populateChildren, postCommit, preCommit, readObject, removeProperty, setDirty, setNew, setNotExist, setPropertyNoLoad, setVerified, valuesDiffer, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adf.businesseditor.objects.BusinessObject
getDescription, getName, setDescription
 

Constructor Detail

BusinessObjectImpl

protected BusinessObjectImpl(BusinessEditorManagerImpl manager,
                             BusinessObject parent,
                             java.lang.String name)

BusinessObjectImpl

protected BusinessObjectImpl(BusinessEditorManagerImpl manager,
                             java.lang.String name,
                             java.lang.String fullName)
Method Detail

getAttributes

public java.util.Collection<Attribute> getAttributes()
Description copied from interface: BusinessObject
Retrieve all attributes for this business object.

Specified by:
getAttributes in interface BusinessObject
Returns:
collection of attributes

getStandardAttributes

public java.util.Collection<StandardAttribute> getStandardAttributes()
Description copied from interface: BusinessObject
Retrieve all standard attributes for this business object.

Specified by:
getStandardAttributes in interface BusinessObject
Returns:
collection of standard attributes

getCustomAttributes

public java.util.Collection<CustomAttribute> getCustomAttributes()
Description copied from interface: BusinessObject
Retrieve all custom attributes for this business object.

Specified by:
getCustomAttributes in interface BusinessObject
Returns:
collection of custom attributes

findAttribute

public AttributeImpl findAttribute(java.lang.String name)
Description copied from interface: BusinessObject
Retrive the attribute of the given name. If no attribute exists for the name, null is returned.

Specified by:
findAttribute in interface BusinessObject
Parameters:
name - name of the attribute.
Returns:
attribute with the given name

createAttribute

public CustomAttribute createAttribute(java.lang.String name,
                                       AttributeType attrType)
Description copied from interface: BusinessObject
Create a custom attribute for the given name and type.

Specified by:
createAttribute in interface BusinessObject
Parameters:
name - name of the attribute
attrType - type of the attribute in AttributeType
Returns:
the custom attribute created for the name and type.

createAttribute

public CustomAttributeImpl createAttribute(java.lang.String name,
                                           java.lang.String type)
Description copied from interface: BusinessObject
Create a custom attribute for the given name and type.

Specified by:
createAttribute in interface BusinessObject
Parameters:
name - name of the attribute
type - type of the attribute in String. It is
Returns:
the custom attribute created for the name and type.

deleteAttribute

public void deleteAttribute(CustomAttribute attr)
Description copied from interface: BusinessObject
Delete a custom attribute.

Specified by:
deleteAttribute in interface BusinessObject
Parameters:
attr - custom attribute to be deleted

getValidators

public java.util.Collection<BusinessObjectValidator> getValidators()
Description copied from interface: BusinessObject
Retrieve all validators for this business object.

Specified by:
getValidators in interface BusinessObject
Returns:
collection of validators

findValidator

public BusinessObjectValidatorImpl findValidator(java.lang.String name)
Description copied from interface: BusinessObject
Retrive the validator of the given name. If no validator exists for the name, null is returned.

Specified by:
findValidator in interface BusinessObject
Parameters:
name - name of the validator.
Returns:
validator with the given name

createValidator

public BusinessObjectValidatorImpl createValidator(java.lang.String name,
                                                   java.lang.String ruleDefinition,
                                                   java.lang.String errorMessage)
Description copied from interface: BusinessObject
Create a validator for this business object.

Specified by:
createValidator in interface BusinessObject
Parameters:
name - name of the validator
ruleDefinition - rule definition of the validator
errorMessage - error message of the validator
Returns:
the validator created for the name.

deleteValidator

public void deleteValidator(BusinessObjectValidator validator)
Description copied from interface: BusinessObject
Delete a validator from this business object.

Specified by:
deleteValidator in interface BusinessObject
Parameters:
validator - name of the validator

getTriggers

public java.util.Collection<BusinessObjectTrigger> getTriggers()
Description copied from interface: BusinessObject
Retrieve all triggers for this business object.

Specified by:
getTriggers in interface BusinessObject
Returns:
collection of triggers

findTrigger

public BusinessObjectTriggerImpl findTrigger(java.lang.String name)
Description copied from interface: BusinessObject
Retrieve the trigger of the given name. If no trigger exists for the name, null is returned.

Specified by:
findTrigger in interface BusinessObject
Parameters:
name - name of the trigger.
Returns:
trigger with the given name

createTrigger

public BusinessObjectTriggerImpl createTrigger(oracle.jbo.server.TriggerType triggerType,
                                               java.lang.String name,
                                               java.lang.String triggerDefinition,
                                               java.lang.String errorMessage)
Description copied from interface: BusinessObject
Create a trigger for this business object.

Specified by:
createTrigger in interface BusinessObject
Parameters:
triggerType - type of the trigger.
name - name of the trigger.
triggerDefinition - trigger definition of the trigger
errorMessage - error message of the trigger
Returns:
the trigger created for the type and name.

deleteTrigger

public void deleteTrigger(BusinessObjectTrigger trigger)
Description copied from interface: BusinessObject
Delete a trigger from this business object.

Specified by:
deleteTrigger in interface BusinessObject
Parameters:
trigger - name of the trigger

getFunctions

public java.util.Collection<BusinessObjectFunction> getFunctions()
Description copied from interface: BusinessObject
Retrieve all functions for the business object.

Specified by:
getFunctions in interface BusinessObject
Returns:
collection of functions

findFunction

public BusinessObjectFunctionImpl findFunction(java.lang.String name)
Description copied from interface: BusinessObject
Retrive the function of the given name. If no function exists for the name, null is returned.

Specified by:
findFunction in interface BusinessObject
Parameters:
name - name of the function.
Returns:
function with the given name

createFunction

public BusinessObjectFunction createFunction(java.lang.String name,
                                             java.lang.String returnType,
                                             java.lang.String body)
Description copied from interface: BusinessObject
Create a function for this business object.

Specified by:
createFunction in interface BusinessObject
Parameters:
name - name of the function.
returnType - return type of the function
body - function body of the function
Returns:
the function created for the name.

deleteFunction

public void deleteFunction(BusinessObjectFunction function)
Description copied from interface: BusinessObject
Delete a function from this business object.

Specified by:
deleteFunction in interface BusinessObject
Parameters:
function - function to be deleted

setDisplayLabel

public void setDisplayLabel(java.lang.String text)
Description copied from interface: BusinessObject
Set the display label of the object.

Specified by:
setDisplayLabel in interface BusinessObject
Parameters:
text - display label of the object

getDisplayLabel

public java.lang.String getDisplayLabel()
Description copied from interface: BusinessObject
Returns the display label of the object.

Specified by:
getDisplayLabel in interface BusinessObject
Returns:
the display label of the object

setDisplayNamePlural

public void setDisplayNamePlural(java.lang.String value)
Description copied from interface: BusinessObject
Set the plural display label of the object.

Specified by:
setDisplayNamePlural in interface BusinessObject
Parameters:
value - plural display label of the object

getDisplayNamePlural

public java.lang.String getDisplayNamePlural()
Description copied from interface: BusinessObject
Returns the plural display label of the object.

Specified by:
getDisplayNamePlural in interface BusinessObject
Returns:
the plural display label of the object

setRecordNameLabel

public void setRecordNameLabel(java.lang.String value)
Description copied from interface: BusinessObject
Set the record name label of the object.

Specified by:
setRecordNameLabel in interface BusinessObject
Parameters:
value - record name label of the object

getRecordNameLabel

public java.lang.String getRecordNameLabel()
Description copied from interface: BusinessObject
Returns the record name label of the object.

Specified by:
getRecordNameLabel in interface BusinessObject
Returns:
the record name label of the object

setAutoNumberPattern

public void setAutoNumberPattern(java.lang.String value)
Description copied from interface: BusinessObject
Set the auto number pattern of the object.

Specified by:
setAutoNumberPattern in interface BusinessObject
Parameters:
value - auto number pattern of the object

getAutoNumberPattern

public java.lang.String getAutoNumberPattern()
Description copied from interface: BusinessObject
Returns the auto number pattern of the object.

Specified by:
getAutoNumberPattern in interface BusinessObject
Returns:
the auto number pattern of the object

getFullName

public java.lang.String getFullName()
Description copied from interface: BusinessObject
Returns the full name of the object.

Specified by:
getFullName in interface BusinessObject
Returns:
the full name of the object

isRemovable

public boolean isRemovable()
Description copied from interface: BusinessObject
Return if business object is removable.

Specified by:
isRemovable in interface BusinessObject
Returns:
if business object is removable

initFlowForNewObject

protected void initFlowForNewObject()
Specified by:
initFlowForNewObject in class BusinessEditorBaseObjectImpl

initFlowForExistingObject

protected void initFlowForExistingObject()
Specified by:
initFlowForExistingObject in class BusinessEditorBaseObjectImpl

finishFlowForNewObject

protected void finishFlowForNewObject()
Specified by:
finishFlowForNewObject in class BusinessEditorBaseObjectImpl

finishFlowForExistingObject

protected void finishFlowForExistingObject()
Specified by:
finishFlowForExistingObject in class BusinessEditorBaseObjectImpl

cancelFlowForNewObject

protected void cancelFlowForNewObject()
Specified by:
cancelFlowForNewObject in class BusinessEditorBaseObjectImpl

cancelFlowForExistingObject

protected void cancelFlowForExistingObject()
Specified by:
cancelFlowForExistingObject in class BusinessEditorBaseObjectImpl

getViewObjectBeingEdited

protected oracle.jbo.ViewObject getViewObjectBeingEdited()
Specified by:
getViewObjectBeingEdited in class BusinessEditorBaseObjectImpl

isPropertyUpdateable

protected boolean isPropertyUpdateable(java.lang.String property)

setParent

protected void setParent(BusinessObject parent)

getParent

protected BusinessObject getParent()

checkLoadObject

protected void checkLoadObject()
Overrides:
checkLoadObject in class BusinessEditorBaseObjectImpl

doCommit

protected void doCommit()
Overrides:
doCommit in class BusinessEditorBaseObjectImpl

doRollback

protected void doRollback()
Overrides:
doRollback in class BusinessEditorBaseObjectImpl

getGroupHelper

public ObjectGroupHelper getGroupHelper(ObjectType type)
Specified by:
getGroupHelper in interface ObjectGroupOwner
Overrides:
getGroupHelper in class BusinessEditorBaseObjectImpl

populateAttributeTriggers

protected void populateAttributeTriggers()

renameFunction

protected void renameFunction(BusinessObjectFunctionImpl function,
                              java.lang.String oldName,
                              java.lang.String newName)

renameValidator

protected void renameValidator(BusinessObjectValidatorImpl validator,
                               java.lang.String oldName,
                               java.lang.String newName)

renameTrigger

protected void renameTrigger(BusinessObjectTriggerImpl trigger,
                             java.lang.String oldName,
                             java.lang.String newName)

getObjectType

protected ObjectType getObjectType()
Specified by:
getObjectType in class BusinessEditorBaseObjectImpl

Oracle Fusion Middleware Java API Reference for Oracle ADF Model Business Editor Objects
11g Release 1 (11.1.1.7.0)

E36215-01

Copyright © 1997, 2013, Oracle. All rights reserved.