|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines containers for coordinated objects related to a particular task.
Field Summary | |
static java.lang.String |
DEFAULT_DEF_FULL_NAME
The metadata defintion of the default Application Module. |
static java.lang.String |
DEFAULT_ROOT_APP_MOD_NAME
The name of the default root Application Module. |
static int |
SYNC_IMMEDIATE
All operations on middle-tier objects are performed immediately. |
static int |
SYNC_LAZY
Operations to be performed on middle-tier objects are batched until an operation forces middle-tier synchronization. |
Method Summary | |
void |
addWarning(JboWarning warn)
Adds a warning message to the warning stack. |
ApplicationModule |
createApplicationModule(java.lang.String amName,
java.lang.String defName)
Creates and names an Application Module. |
ComponentObject |
createComponentObject(java.lang.String coName,
java.lang.String coDefName)
Creates a Component Object from the name of a ComponentObject metadata definition. |
ViewLink |
createViewLink(java.lang.String viewLinkName,
java.lang.String viewLinkDefName,
ViewObject master,
ViewObject detail)
Creates a new View Link. |
ViewLink |
createViewLinkBetweenViewObjects(java.lang.String viewLinkName,
java.lang.String accessorName,
ViewObject master,
AttributeDef[] srcAttrs,
ViewObject detail,
AttributeDef[] destAttrs,
java.lang.String assocClause)
Creates a new View Link. |
ViewLink |
createViewLinkFromEntityAssocName(java.lang.String viewLinkName,
java.lang.String entityAssocName,
ViewObject master,
ViewObject detail)
Creates a new View Link. |
ViewObject |
createViewObject(java.lang.String vuName,
java.lang.String voName)
Creates a View Object from the name of a ViewObject metadata definition. |
ViewObject |
createViewObjectFromQueryClauses(java.lang.String vuName,
java.lang.String eoName,
java.lang.String selectClause,
java.lang.String fromClause,
java.lang.String whereClause,
java.lang.String orderByClause)
Creates an updatable View Object. |
ViewObject |
createViewObjectFromQueryStmt(java.lang.String vuName,
java.lang.String sqlStatement)
Creates a View Object definition from a SQL statement. |
ApplicationModule |
findApplicationModule(java.lang.String amName)
Finds an Application Module by name. |
ComponentObject |
findComponentObject(java.lang.String coName)
Finds a named Component Object. |
RowSetIterator |
findRSIForEntity(RowSetIterator[] rsis,
int eRowHandle)
Finds the appropriate RowSetIterator for an entity row handle. |
ViewLink |
findViewLink(java.lang.String viewLinkName)
Finds a named View Link. |
ViewObject |
findViewObject(java.lang.String voName)
Finds a named View Object. |
java.lang.String[] |
getApplicationModuleNames()
Gets the names of all Application Modules. |
Session |
getSession()
Gets the Application Module's current session. |
ClientDocument |
getStyles(java.lang.String name)
Gets the Application Module's style definitions from the middle tier. |
int |
getSyncMode()
Gets the current sync mode. |
Transaction |
getTransaction()
Gets the Application Module's current database transaction. |
java.lang.String[] |
getViewLinkNames()
Gets the names of the Application Module's View Links. |
java.lang.String[] |
getViewObjectNames()
Constructs an array of the names of the View Object definitions, both static and dynamic, defined in this Application Module. |
void |
setExceptionHandler(JboExceptionHandler hndlr)
Sets the exception handler for the Application Module. |
void |
setStyles(java.lang.String name,
ClientDocument clientDocument)
Saves the Application Module's style definitions to the middle tier. |
void |
setSyncMode(int mode)
Sets the syncronization mode between the client and the middle tier. |
void |
sync()
Synchronizes all the result sets defined in this Application Module with the server. |
Methods inherited from interface oracle.jbo.ComponentObject |
getDefFullName,
getDefName,
getFullName,
getName,
remove |
Methods inherited from interface oracle.jbo.Properties |
getProperties,
getProperty |
Field Detail |
public static final java.lang.String DEFAULT_ROOT_APP_MOD_NAME
public static final java.lang.String DEFAULT_DEF_FULL_NAME
public static final int SYNC_LAZY
public static final int SYNC_IMMEDIATE
Method Detail |
public ApplicationModule createApplicationModule(java.lang.String amName, java.lang.String defName)
If DEFAULT_DEF_FULL_NAME
is passed for defName
,
a generic Application Module is created.
amName
- the name to be assigned to the Application Module.
If null
, a system generated
name is assigned.defName
- the name of the definition from which the new
Application Module is to be created.public ApplicationModule findApplicationModule(java.lang.String amName)
The Application Module found is a contained reference, within this Application Module, having the given name.
amName
- the name of the Application Module.public java.lang.String[] getApplicationModuleNames()
public void sync()
Any changes in the result sets are uploaded to the server and the server updates are downloaded to the client.
public void setSyncMode(int mode)
mode
- the new syncronization mode:
If SYNC_LAZY
, operations on middle-tier objects
are batched until sync()
is called, or until an operation causes new data to be fetched from the server.
If SYNC_IMMEDIATE
,
all operations on middle-tier objects are performed immediately.
public int getSyncMode()
SYNC_LAZY
or SYNC_IMMEDIATE
.public java.lang.String[] getViewObjectNames()
ViewObject
names.public ViewObject findViewObject(java.lang.String voName)
voName
- a View Object name.public ComponentObject findComponentObject(java.lang.String coName)
coName
- a Component Object name.public ViewObject createViewObject(java.lang.String vuName, java.lang.String voName)
ViewObject
metadata definition.vuName
- the name that will be given to the ViewObject
.
If null
, a system-generated
name is assigned.voName
- the name of the ViewObject
metadata definition.public ComponentObject createComponentObject(java.lang.String coName, java.lang.String coDefName)
ComponentObject
metadata definition.coName
- the name that will be given to the ComponentObject
.
If null
, a system-generated
name is assigned.coName
- the name of the ComponentObject
metadata definition.public ViewObject createViewObjectFromQueryClauses(java.lang.String vuName, java.lang.String eoName, java.lang.String selectClause, java.lang.String fromClause, java.lang.String whereClause, java.lang.String orderByClause)
The View Object is constructed from an Entity Object and parts of a SQL statement.
vuName
- the name that will be given to the View Object.
If null
, a system generated
name is assigned.eoName
- the name of a EntityObject
class.selectClause
- a SQL statement SELECT clause.fromClause
- a SQL statement FROM clause.whereClause
- a SQL statement WHERE clause.orderbyClause
- a SQL statement ORDERBY clause.public ViewObject createViewObjectFromQueryStmt(java.lang.String vuName, java.lang.String sqlStatement)
vuName
- the name that will be given to the View Object.
If null
, a system generated
name is assigned.sqlStatement
- a SQL statement.public java.lang.String[] getViewLinkNames()
public ViewLink findViewLink(java.lang.String viewLinkName)
viewLinkName
- a name.ViewLink
.public ViewLink createViewLink(java.lang.String viewLinkName, java.lang.String viewLinkDefName, ViewObject master, ViewObject detail)
viewLinkName
- the name for the new View Link.
If null
, a system generated
name is assigned.viewLinkDefName
- the name of the link definition that defines the link.master
- the View Object that is the source of the link.detail
- the View Object that is the destination of the link.ViewLink
.public ViewLink createViewLinkFromEntityAssocName(java.lang.String viewLinkName, java.lang.String entityAssocName, ViewObject master, ViewObject detail)
viewLinkName
- the name for the new View Link.
If null
, a system generated
name is assigned.entityAssocName
- the name of the entity association from which the
link is derived.master
- the View Object that is the source of the link.detail
- the View Object that is the destination of the link.ViewLink
.public ViewLink createViewLinkBetweenViewObjects(java.lang.String viewLinkName, java.lang.String accessorName, ViewObject master, AttributeDef[] srcAttrs, ViewObject detail, AttributeDef[] destAttrs, java.lang.String assocClause)
viewLinkName
- the name for the new View Link.
If null
, a system generated
name is assigned.accessorName
- master
- the View Object that is the source of the link.srcAttrs
- the attributes of master
that comprise the source of the link.detail
- the View Object that is the destination of the link.destAttrs
- the attributes of detail
that comprise the destination of the link.ViewLink
.public RowSetIterator findRSIForEntity(RowSetIterator[] rsis, int eRowHandle)
RowSetIterator
for an entity row handle.rsis
- an array of RowSetIterator
's to look through.eRowHandle
- the entity row handle.RowSetIterator
.public void setExceptionHandler(JboExceptionHandler hndlr)
The exception handler catches exceptions thrown by the middle tier in response to transactions generated by the Application Module.
hndlr
- an exception handler.public void addWarning(JboWarning warn)
This stack is erased when the method call on the middle-tier returns to the client.
hndlr
- an warning handler.public void setStyles(java.lang.String name, ClientDocument clientDocument)
name
- a name under which the style definitions are to be stored.clientDocument
- the ClientDocument
to be saved.public ClientDocument getStyles(java.lang.String name)
name
- a name under which the style definitions are stored.public Transaction getTransaction()
Transaction
.public Session getSession()
Session
.
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |