|
Java Client API Reference 6.0.2.61 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.baan.b3.boi1.BusinessObjectManager
Base class for type-safe interfaces to backends.
Subclasses can query a backend for specific types of business object.
Changes can be made on the resultant data set and subsequently synchronized
with the backend. Business objects can also be inserted or deleted.
This class is also used as a superclass for type-safe access to APIs in
the backend through a remote function call mechanism
| Field Summary | |
static java.lang.String |
BDC_METHOD_ADAPTER_CLASS_NAME
|
static java.lang.String |
BSQ_METHOD_ADAPTER_CLASS_NAME
|
static java.lang.String |
QBD_METHOD_ADAPTER_CLASS_NAME
|
| Method Summary | |
void |
add(BusinessObject p_object)
Adds a 'new' business object to the control of this manager. |
void |
changeBusinessObject(BusinessObject p_oldValue,
BusinessObject p_newValue)
Instructs the manager to change a business object. |
void |
close()
Closes a manager, closes the connection with it's OpenWorldX Adapter backend and frees up it resources. |
java.lang.String |
getCurrentBackend()
Retrieves the identifier for the current backend. |
Iterator |
getIterator()
Returns an Iterator after making some 'Combined calls'. |
long |
getTimeOut()
Returns the timeout currently set on this manager. |
IExceptionDescriptor[] |
getWarnings()
Retrieves all warnings that have occurred since the last call to this method. |
void |
initialize(java.lang.String p_backendComponentName)
Initializes this manager for a specific OpenWorldX Adapter backend. |
void |
introduce(BusinessObject p_object)
Introduces an object into this manager. |
void |
ping()
Pings connected backend. |
void |
release(BusinessObject p_businessObject)
Release one particular business object from this manager. |
void |
releaseAll()
Releases all the business objects this manager keeps in 'memory'. |
void |
remove(BusinessObject p_businessObject)
Earmarks a local business object for removal. |
void |
setTimeOut(long p_timeout)
Changes the time this manager waits for the result. |
void |
setTransactionScope(TransactionScope p_transactionScope)
Sets the transaction scope for this manager The default is TransactionScope.NONE
Postconditions: The transaction scope of this manager is set to the value specified by p_transactionScope Threading policy: Unsafe |
void |
setUnconditional(boolean p_unconditional)
Sets the unconditional feature for this manager. |
void |
setUserInfo(IUserInfo p_userInfo)
Sets the user context for this manager Postconditions: The manager uses the specified user context Threading policy: Unsafe |
void |
synchronize()
Synchronizes local changed business objects to the backend. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String BSQ_METHOD_ADAPTER_CLASS_NAME
public static final java.lang.String BDC_METHOD_ADAPTER_CLASS_NAME
public static final java.lang.String QBD_METHOD_ADAPTER_CLASS_NAME
| Method Detail |
public Iterator getIterator()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the preconditions are not met
public void initialize(java.lang.String p_backendComponentName)
throws BoiException
p_backendComponentName - the name of the bus component that refers
the backend (must not be null or have length 0)BoiException - if something went wrong at the adapter or at the transport level
public void ping()
throws BoiException
BoiException - if something went wrong at the adapter or transport
level
public void synchronize()
throws BoiException,
BoiSynchronizationException
BoiException - if something went wrong at the adapter or transport
levelBoiSynchronizationException - if something went wrong at the
'server' application levelpublic void setTimeOut(long p_timeout)
BoiException is thrown. This mechanism is to prevent client
applications from 'hanging' because of non responding OpenWorldX Adapter servers
p_timeout - the timeout in milliseconds to set on the manager,
0 = no timeout; wait forever (must not be less than 0)public long getTimeOut()
setTimeOut(long)public void add(BusinessObject p_object)
p_object - the 'new' business object to link to this manager (must
not be null)public void introduce(BusinessObject p_object)
changeBusinessObject(com.baan.b3.boi1.BusinessObject, com.baan.b3.boi1.BusinessObject) function.
p_object - the BusinessObject that this manager needs to track (must
not be null)public void close()
public void releaseAll()
synchronize() will no longer
result in a change in the backend
public void release(BusinessObject p_businessObject)
synchronize() call. Nor
will the object be added or removed in the cases where add(com.baan.b3.boi1.BusinessObject) or
remove(com.baan.b3.boi1.BusinessObject) were called, respectively
p_businessObject - the business object to be release (must not be
null)public void remove(BusinessObject p_businessObject)
synchronize() on this manager, the request for
removing the business object from the backend is send to the server
p_businessObject - the business object to be removed from the
backend (must not be null)public IExceptionDescriptor[] getWarnings()
public void setTransactionScope(TransactionScope p_transactionScope)
TransactionScope.NONE
p_transactionScope - an integer constant that indicates which
transactionscope to use (must be
TransactionScope.NONE,
TransactionScope.GLOBAL,
TransactionScope.MANAGER
or TransactionScope.BUSINESSOBJECT)public void setUserInfo(IUserInfo p_userInfo)
p_userInfo - the userinfo object to use with this manager (must not
be null)public void setUnconditional(boolean p_unconditional)
p_unconditional - true to turn of the unconditional
feature, false to turn it off
public void changeBusinessObject(BusinessObject p_oldValue,
BusinessObject p_newValue)
throws java.lang.IllegalArgumentException,
BoiProgrammingRException
introduce(com.baan.b3.boi1.BusinessObject)d to this manager
synchronize() is called
p_oldValue - the old/current value of the business object. Can only
be null if p_newValue is not
nullp_newValue - the new/intended value of the business object. Can only
be null if p_oldValue is not
nulljava.lang.IllegalArgumentException - if a vector member has
undergone a combined delete/insert/change operationBoiProgrammingRException - if both arguments are nullpublic java.lang.String getCurrentBackend()
initialize(java.lang.String) function. This
String can be used as an argument for the
DirectoryToolkit.getBusComponent(java.lang.String)
function to retrieve a IBusComponent
object.
initialize(java.lang.String)d
|
Java Client API Reference 6.0.2.61 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||