public final class BusinessEditorManager extends java.lang.Object implements BusinessEditorManagerInterface
Constructor and Description |
---|
BusinessEditorManager()
Initializes a BusinessEditorManager object.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Call commit() to save the changes of the current pending logical
operation you are performing.
|
BusinessObject |
createBusinessObject(BusinessObject parent,
java.lang.String name)
Creates a BusinessObject.
|
BusinessObject |
createBusinessObject(BusinessObject parent,
java.lang.String name,
CustomObjectInfo descriptor)
Creates a BusinessObject.
|
BusinessObject |
createBusinessObject(java.lang.String name)
Creates a BusinessObject.
|
BusinessObject |
createBusinessObject(java.lang.String name,
CustomObjectInfo descriptor)
Creates a BusinessObject.
|
GlobalFunction |
createGlobalFunction(java.lang.String name,
java.lang.String returnType,
java.lang.String body)
Creates a global function.
|
void |
deleteBusinessObject(BusinessObject bo)
Deletes a business object.
|
void |
deleteGlobalFunction(GlobalFunction function)
Deletes a global function.
|
BusinessObject |
findBusinessObject(java.lang.String name)
Finds the existing BusinessObject for the given name.
|
GlobalFunction |
findGlobalFunction(java.lang.String name,
java.lang.String... paramTypes)
Retrieves the global function with the given name.
|
java.util.Collection<GlobalFunction> |
findGlobalFunctions(java.lang.String name)
Retrieves all global functions with the name.
|
java.util.Collection<BusinessObject> |
getBusinessObjects()
Returns all customizable business objects, and the reference-only business objects that
contain attributes that can be used for the display and search attribute for dynamic
choice list.
|
java.util.Collection<GlobalFunction> |
getGlobalFunctions()
Returns global functions.
|
void |
release()
Releases the application module instance.
|
void |
rollback()
Discard any changes since last commit.
|
public BusinessEditorManager()
public java.util.Collection<BusinessObject> getBusinessObjects()
BusinessObject.isCustomizable()
to identify if a business object is customizable.getBusinessObjects
in interface BusinessEditorManagerInterface
public BusinessObject findBusinessObject(java.lang.String name)
findBusinessObject
in interface BusinessEditorManagerInterface
name
- name of object to search forpublic BusinessObject createBusinessObject(java.lang.String name)
createBusinessObject
in interface BusinessEditorManagerInterface
name
- name of the BusinessObjectoracle.jbo.JboException
- if a BusinessObject for the name already existspublic BusinessObject createBusinessObject(java.lang.String name, CustomObjectInfo descriptor)
createBusinessObject
in interface BusinessEditorManagerInterface
name
- name of the BusinessObjectdescriptor
- an instance of CustomObjectDescriptororacle.jbo.JboException
- if a BusinessObject for the name already existspublic BusinessObject createBusinessObject(BusinessObject parent, java.lang.String name)
createBusinessObject
in interface BusinessEditorManagerInterface
parent
- parent of the BusinessObjectname
- name of the BusinessObjectoracle.jbo.JboException
- if a BusinessObject for the name already existspublic BusinessObject createBusinessObject(BusinessObject parent, java.lang.String name, CustomObjectInfo descriptor)
createBusinessObject
in interface BusinessEditorManagerInterface
parent
- parent of the BusinessObjectname
- name of the BusinessObjectdescriptor
- an instance of CustomObjectDescriptororacle.jbo.JboException
- if a BusinessObject for the name already existspublic void deleteBusinessObject(BusinessObject bo)
deleteBusinessObject
in interface BusinessEditorManagerInterface
bo
- the business object to be deleted.public java.util.Collection<GlobalFunction> getGlobalFunctions()
getGlobalFunctions
in interface BusinessEditorManagerInterface
public GlobalFunction findGlobalFunction(java.lang.String name, java.lang.String... paramTypes)
findGlobalFunction
in interface BusinessEditorManagerInterface
name
- name of the global function to be returnedparamTypes
- parameters types for the functionpublic java.util.Collection<GlobalFunction> findGlobalFunctions(java.lang.String name)
findGlobalFunctions
in interface BusinessEditorManagerInterface
name
- name of the global functions to be returnedpublic GlobalFunction createGlobalFunction(java.lang.String name, java.lang.String returnType, java.lang.String body)
createGlobalFunction
in interface BusinessEditorManagerInterface
name
- name of the global functionreturnType
- return typebody
- the function bodypublic void deleteGlobalFunction(GlobalFunction function)
deleteGlobalFunction
in interface BusinessEditorManagerInterface
function
- the global function to be deleted.public void commit()
commit
in interface BusinessEditorManagerInterface
public void rollback()
rollback
in interface BusinessEditorManagerInterface
public void release()
release
in interface BusinessEditorManagerInterface