public final class NonCustomizableAttributeImpl
extends java.lang.Object
BusinessEditorConstants.ObjectMode
Modifier and Type | Method and Description |
---|---|
protected void |
accept(ObjectVisitor visitor)
A visitor pattern is implemented for business object to visit all components
of a business object.
|
void |
activate() |
protected void |
addAttrToList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.AttributeImpl value) |
void |
addDependencyAttr(Attribute attr)
Adds an attribute as dependency attribute, whose data changes will cause
this attribute's constraint expression to be reevaluated.
|
protected void |
addTrigger(java.lang.String name) |
protected void |
addValidator(java.lang.String name) |
protected void |
cancelFlow() |
protected void |
cancelFlowForExistingObject() |
protected void |
cancelFlowForNewObject() |
boolean |
canPopulateChildren() |
protected void |
checkLoadObject() |
protected void |
commitObject() |
protected boolean |
containsProperty(java.lang.String property) |
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition)
Creates a trigger for this attribute.
|
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
createTrigger(java.lang.String name,
java.lang.String triggerDefinition,
java.lang.String errorMessage)
Creates a trigger for this attribute.
|
oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl |
createValidator(java.lang.String name,
java.lang.String ruleDefinition,
java.lang.String errorMessage)
Creates a validator for this attribute.
|
void |
deleteTrigger(AttributeTrigger trigger)
Deletes a trigger from this attribute.
|
void |
deleteValidator(AttributeValidator validator)
Deletes a validator from this attribute.
|
void |
deprecate() |
protected void |
doCommit() |
protected void |
doRollback() |
void |
ensureVerified() |
oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl |
findTrigger(java.lang.String name)
Retrieve the trigger of the given name.
|
oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl |
findValidator(java.lang.String name)
Retrieve the validator of the given name.
|
protected void |
finishFlow() |
protected void |
finishFlowForExistingObject() |
protected void |
finishFlowForNewObject() |
java.lang.String |
getApiName() |
protected oracle.jbo.server.AttributeDefImpl |
getAttributeDef() |
protected java.util.List<Attribute> |
getAttributeListFromAttrNameList(BusinessObject bo,
java.util.List<java.lang.String> attrNames) |
protected oracle.adf.businesseditor.model.BusinessEditorImpl |
getBusinessEditor() |
protected oracle.adf.businesseditor.model.BusinessEditorLogic |
getBusinessEditorLogic() |
protected BusinessEditorManagerImpl |
getBusinessEditorManager() |
oracle.adfinternal.businesseditor.objects.BusinessObjectImpl |
getBusinessObject()
Returns the business object that owns the attribute
|
protected java.lang.String |
getBusinessObjectFullName() |
protected oracle.jbo.common.JboCompOper |
getCompOper(java.lang.String operator) |
protected oracle.adfinternal.businesseditor.objects.ObjectGroupOwner |
getContainer() |
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.util.List<Attribute> |
getDependencyAttributes()
Returns list of dependency attributes for this attribute, whose data
changes will cause this attribute's constraint expression to be
reevaluated.
|
java.util.List<java.lang.String> |
getDependencyAttrs()
Returns list of dependency attributes for this attribute, whose data
changes will cause this attribute's constraint expression to be
reevaluated.
|
protected java.util.Collection<oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl> |
getDependentObjects() |
java.lang.String |
getDescription() |
java.lang.String |
getDisplayLabel()
Returns the display label of this attribute.
|
java.lang.String |
getFixedChoiceListLookupType()
Returns the fixed choice lookup type if the attribute is defined as
a fixed choice list
|
java.util.Map<java.lang.String,java.util.List> |
getFixedChoiceListValueMap()
Gets the value map if this attribute is a cascading picklist.
|
protected java.util.Map<java.lang.String,java.util.List> |
getFixedChoiceListValueMap(oracle.jbo.domain.Number relId) |
FormulaType |
getFormulaType()
Returns the type of data the expression will be setting as this attribute
value.
|
oracle.adfinternal.businesseditor.objects.ObjectGroupHelper |
getGroupHelper(oracle.adfinternal.businesseditor.objects.ObjectType type) |
java.lang.String |
getHelpText()
Returns a description in terms an application will understand.
|
protected boolean |
getIsCascadingPicklistEnabled() |
protected java.lang.String |
getIsDeprecatedPropertyKey() |
protected java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.Object... args) |
protected java.lang.String |
getLogicalType() |
java.lang.String |
getName() |
protected java.lang.String |
getObjectKey() |
protected java.lang.String |
getObjectName() |
protected oracle.adfinternal.businesseditor.objects.ObjectType |
getObjectType() |
oracle.adfinternal.businesseditor.objects.AttributeImpl |
getParentChoiceList()
Gets the parent the choice list that constrains the values in this choice list.
|
protected java.lang.String |
getParentChoiceListAttributeVAName() |
java.lang.Object |
getProperty(java.lang.String property) |
protected java.lang.Object |
getPropertyNoLoad(java.lang.String property) |
protected java.lang.Object |
getPropertyNoLoad(java.lang.String property,
java.lang.Object defaultValue) |
java.util.Collection<AttributeTrigger> |
getTriggers()
Retrieve all triggers for this attribute.
|
java.lang.String |
getType()
Returns the type of this attribute.
|
java.lang.String |
getUpdateableExpression()
Returns the expression that determine if an attribute is updateable.
|
java.util.Collection<AttributeValidator> |
getValidators()
Retrieves all validators for the attribute.
|
protected oracle.jbo.ViewObject |
getViewObjectBeingEdited() |
protected void |
initFlow() |
protected void |
initFlowForExistingObject() |
protected void |
initFlowForLoadingExistingObject() |
protected void |
initFlowForNewObject() |
protected void |
initialize() |
protected boolean |
isCharType() |
boolean |
isCustomizable() |
boolean |
isDeprecated() |
protected boolean |
isDirty() |
protected boolean |
isLoaded() |
protected boolean |
isLobInterface() |
protected boolean |
isNew() |
protected boolean |
isNotVerified() |
protected boolean |
isPersistent() |
protected boolean |
isPicklist() |
protected boolean |
isPublished() |
boolean |
isRemovable()
Returns if this attribute is removable.
|
boolean |
isRequired()
Returns if value is required for this attribute.
|
boolean |
isSearchable()
Returns if this attribute is searchable.
|
boolean |
isUpdateable()
Returns if this attribute is updateable
|
void |
populateChildren(oracle.adfinternal.businesseditor.objects.ObjectType type) |
protected void |
postCommit() |
protected void |
preCommit() |
protected void |
readObject(oracle.jbo.Row row) |
protected void |
removeAttrFromList(java.lang.String property,
oracle.adfinternal.businesseditor.objects.AttributeImpl value) |
void |
removeDependencyAttr(Attribute value)
Removes an attribute as dependency attribute, whose data changes will
cause this attribute's constraint expression to be reevaluated
|
protected void |
removeProperty(java.lang.String property) |
protected void |
renameTrigger(oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl trigger,
java.lang.String oldName,
java.lang.String newName) |
protected void |
renameValidator(oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl validator,
java.lang.String oldName,
java.lang.String newName) |
protected void |
setCustomizable(boolean customizable) |
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 text) |
protected void |
setDirty(boolean value) |
void |
setDisplayLabel(java.lang.String displayLabel)
Sets the display label of this attribute.
|
void |
setHelpText(java.lang.String helpText)
Sets a description in terms an application will understand.
|
protected void |
setLoaded() |
protected void |
setName(java.lang.String name) |
protected void |
setNew() |
protected void |
setNotExist() |
void |
setParentChoiceList(Attribute parent,
java.util.Map<java.lang.String,java.util.List> valueMap)
Sets the parent choice list that constrains the values in this choice list.
|
protected void |
setProperty(java.lang.String property,
java.lang.Object value) |
protected void |
setPropertyNoLoad(java.lang.String property,
java.lang.Object value) |
protected void |
setPublished(boolean published) |
void |
setRequired(boolean required)
Sets if value is required for this attribute.
|
void |
setSearchable(boolean searchable)
Sets if this attribute is searchable.
|
protected void |
setTriggerPopulated() |
void |
setUpdateableExpression(java.lang.String expression)
Registers the expression that control if this attribute is updateable.
|
protected void |
setValidatorPopulated() |
protected void |
setVerified() |
protected boolean |
valuesDiffer(java.lang.Object oldValue,
java.lang.Object newValue) |
protected void |
writeObject(oracle.jbo.Row object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getName, setDescription
public java.util.Collection<AttributeValidator> getValidators()
Attribute
getValidators
in interface Attribute
public oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl findValidator(java.lang.String name)
Attribute
findValidator
in interface Attribute
name
- name of the validator.public oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl createValidator(java.lang.String name, java.lang.String ruleDefinition, java.lang.String errorMessage)
Attribute
createValidator
in interface Attribute
name
- name of the validator.ruleDefinition
- validator definitionerrorMessage
- error message for validatorpublic java.util.Collection<AttributeTrigger> getTriggers()
Attribute
getTriggers
in interface Attribute
public oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl findTrigger(java.lang.String name)
Attribute
findTrigger
in interface Attribute
name
- name of the trigger.public oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl createTrigger(java.lang.String name, java.lang.String triggerDefinition, java.lang.String errorMessage)
Attribute
createTrigger
in interface Attribute
name
- name of the trigger.triggerDefinition
- trigger definition of the triggererrorMessage
- error message of the triggerpublic void setParentChoiceList(Attribute parent, java.util.Map<java.lang.String,java.util.List> valueMap)
Attribute
setParentChoiceList
in interface Attribute
parent
- the attribute of the parent choice listvalueMap
- the value mapping between the parent choice list and this attributepublic java.lang.String getApiName()
public java.lang.String getType()
Attribute
public java.lang.String getFixedChoiceListLookupType()
Attribute
getFixedChoiceListLookupType
in interface Attribute
public boolean isRequired()
Attribute
isRequired
in interface Attribute
protected boolean isPersistent()
protected void initFlowForNewObject()
protected void initFlowForExistingObject()
protected void initFlowForLoadingExistingObject()
protected void finishFlowForNewObject()
protected void finishFlowForExistingObject()
protected void cancelFlowForNewObject()
protected void cancelFlowForExistingObject()
protected boolean isPicklist()
protected oracle.jbo.ViewObject getViewObjectBeingEdited()
protected java.lang.String getLogicalType()
protected oracle.adfinternal.businesseditor.objects.ObjectType getObjectType()
protected boolean getIsCascadingPicklistEnabled()
protected java.lang.String getParentChoiceListAttributeVAName()
protected void addAttrToList(java.lang.String property, oracle.adfinternal.businesseditor.objects.AttributeImpl value)
public java.lang.Object getProperty(java.lang.String property)
protected void setProperty(java.lang.String property, java.lang.Object value)
public void deleteValidator(AttributeValidator validator)
Attribute
deleteValidator
in interface Attribute
validator
- the validator to be deletedpublic oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl createTrigger(java.lang.String name, java.lang.String triggerDefinition)
Attribute
createTrigger
in interface Attribute
name
- name of the trigger.triggerDefinition
- trigger definition of the triggerpublic void deleteTrigger(AttributeTrigger trigger)
Attribute
deleteTrigger
in interface Attribute
trigger
- the trigger to be deletedpublic void setUpdateableExpression(java.lang.String expression)
Attribute
setUpdateableExpression
in interface Attribute
expression
- the expression to control if this attribute is updateable.public java.lang.String getUpdateableExpression()
Attribute
getUpdateableExpression
in interface Attribute
public void addDependencyAttr(Attribute attr)
Attribute
addDependencyAttr
in interface Attribute
attr
- the new dependent attributepublic void removeDependencyAttr(Attribute value)
Attribute
removeDependencyAttr
in interface Attribute
value
- the dependent attribute to be removedpublic java.util.List<java.lang.String> getDependencyAttrs()
Attribute
getDependencyAttrs
in interface Attribute
public java.util.List<Attribute> getDependencyAttributes()
Attribute
getDependencyAttributes
in interface Attribute
public void setDisplayLabel(java.lang.String displayLabel)
Attribute
setDisplayLabel
in interface Attribute
displayLabel
- display label of this attributepublic java.lang.String getDisplayLabel()
Attribute
getDisplayLabel
in interface Attribute
public void setHelpText(java.lang.String helpText)
Attribute
setHelpText
in interface Attribute
helpText
- a descriptionpublic java.lang.String getHelpText()
Attribute
getHelpText
in interface Attribute
public void setRequired(boolean required)
Attribute
setRequired
in interface Attribute
required
- if valud is required for this attributepublic boolean isSearchable()
Attribute
isSearchable
in interface Attribute
public void setSearchable(boolean searchable)
Attribute
setSearchable
in interface Attribute
searchable
- if this attribute is searchable.public boolean isRemovable()
Attribute
isRemovable
in interface Attribute
public oracle.adfinternal.businesseditor.objects.ObjectGroupHelper getGroupHelper(oracle.adfinternal.businesseditor.objects.ObjectType type)
public FormulaType getFormulaType()
Attribute
getFormulaType
in interface Attribute
public oracle.adfinternal.businesseditor.objects.AttributeImpl getParentChoiceList()
Attribute
getParentChoiceList
in interface Attribute
public java.util.Map<java.lang.String,java.util.List> getFixedChoiceListValueMap()
Attribute
getFixedChoiceListValueMap
in interface Attribute
public boolean isUpdateable()
Attribute
isUpdateable
in interface Attribute
public oracle.adfinternal.businesseditor.objects.BusinessObjectImpl getBusinessObject()
Attribute
getBusinessObject
in interface Attribute
public java.util.Map<java.lang.String,java.lang.String> getCustomProperties(java.lang.String namespace)
Attribute
getCustomProperties
in interface Attribute
namespace
- namespace for propertiespublic void setCustomProperty(java.lang.String namespace, java.lang.String name, java.lang.String value)
Attribute
setCustomProperty
in interface Attribute
namespace
- namespace for propertyname
- name to use for new propertyvalue
- new value for propertypublic java.lang.String getCustomProperty(java.lang.String namespace, java.lang.String name)
Attribute
getCustomProperty
in interface Attribute
namespace
- namespace for propertyname
- name to search forprotected java.lang.String getBusinessObjectFullName()
protected void renameValidator(oracle.adfinternal.businesseditor.objects.AttributeValidatorImpl validator, java.lang.String oldName, java.lang.String newName)
protected void renameTrigger(oracle.adfinternal.businesseditor.objects.AttributeTriggerImpl trigger, java.lang.String oldName, java.lang.String newName)
protected void removeAttrFromList(java.lang.String property, oracle.adfinternal.businesseditor.objects.AttributeImpl value)
protected void doCommit()
protected void preCommit()
protected java.util.Map<java.lang.String,java.util.List> getFixedChoiceListValueMap(oracle.jbo.domain.Number relId)
protected void doRollback()
protected void addTrigger(java.lang.String name)
protected void setTriggerPopulated()
protected void addValidator(java.lang.String name)
protected void setValidatorPopulated()
protected java.util.Collection<oracle.adfinternal.businesseditor.objects.BusinessEditorBaseObjectImpl> getDependentObjects()
protected void accept(ObjectVisitor visitor)
ObjectVisitor
)
method which does the followings:
1. Call visitor.visit(this) to process the current object
2. Call accept for all its children so all children will be visitedvisitor
- ObjectVisitor instanceprotected java.util.List<Attribute> getAttributeListFromAttrNameList(BusinessObject bo, java.util.List<java.lang.String> attrNames)
protected oracle.jbo.common.JboCompOper getCompOper(java.lang.String operator)
protected boolean isCharType()
protected boolean isLobInterface()
protected oracle.jbo.server.AttributeDefImpl getAttributeDef()
protected void writeObject(oracle.jbo.Row object)
public java.lang.String getName()
public void setDescription(java.lang.String text)
public java.lang.String getDescription()
public void deprecate()
public void activate()
public boolean isDeprecated()
public boolean isCustomizable()
protected void setName(java.lang.String name)
protected BusinessEditorManagerImpl getBusinessEditorManager()
protected oracle.adf.businesseditor.model.BusinessEditorImpl getBusinessEditor()
protected oracle.adf.businesseditor.model.BusinessEditorLogic getBusinessEditorLogic()
protected java.lang.String getObjectKey()
protected java.lang.String getIsDeprecatedPropertyKey()
protected void readObject(oracle.jbo.Row row)
protected void commitObject()
protected void cancelFlow()
protected void setCustomizable(boolean customizable)
protected boolean isPublished()
protected void setPublished(boolean published)
public void populateChildren(oracle.adfinternal.businesseditor.objects.ObjectType type)
protected boolean valuesDiffer(java.lang.Object oldValue, java.lang.Object newValue)
public void ensureVerified()
protected void checkLoadObject()
protected boolean isNew()
protected void setNew()
protected boolean isLoaded()
protected boolean isNotVerified()
protected void setNotExist()
protected void setVerified()
protected void setLoaded()
protected boolean isDirty()
protected void setDirty(boolean value)
protected final void initFlow()
protected void finishFlow()
protected java.lang.Object getPropertyNoLoad(java.lang.String property)
protected java.lang.Object getPropertyNoLoad(java.lang.String property, java.lang.Object defaultValue)
protected void setPropertyNoLoad(java.lang.String property, java.lang.Object value)
protected boolean containsProperty(java.lang.String property)
protected void removeProperty(java.lang.String property)
public boolean canPopulateChildren()
protected void initialize()
protected void postCommit()
protected oracle.adfinternal.businesseditor.objects.ObjectGroupOwner getContainer()
protected java.lang.String getLocalizedString(java.lang.String key, java.lang.Object... args)
protected java.lang.String getObjectName()