|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Realizes interface for ServiceModule.
The
Examples for such service modules are business partners, employees, sales order,..
The main tasks of
This is necessary to use it as Model from Web Dynpro.
the method throws an
This new created
The method throws an
The method throws an
The method throws an
This new created
The method throws an
This new created
The method throws an
if lockStrategy other than ServiceModules.ServiceModule are:
Additionally Aspect and Query instances
AspectCaches
ServiceModule implements ICMIModel.
Method Summary
IAspectcreateAspect(java.lang.String aspectName)
Creates an IAspect by getting meta data from ServiceModuleDescriptor.
IKeycreateKey(java.lang.String keyName,
java.lang.String[] keyFields)
Creates a IKey by getting meta data from ServiceModuleDescriptor.
IKeyListcreateKeyList(java.lang.String keyName)
Creates an empty IKeyList by getting meta data from ServiceModuleDescriptor.
IQuerycreateQuery(java.lang.String queryName)
Creates a new IQuery, by getting meta data from ServiceModuleDescriptor
IAspectgetAspect(java.lang.String aspectName,
IKeyList keyList)
Creates an IAspect by navigating from Keys of the given KeyList to the targetAspect with given aspectName.
IAspectgetAspect(java.lang.String aspectName,
IKeyList keyList,
LockStrategy lockStrategy)
Creates an IAspect by navigating from Keys of the given KeyList to the targetAspect with given name.
IAspectgetAspect(java.lang.String aspectName,
java.lang.String[] urlOfKeys)
Creates an Aspect by navigating from Keys of the given array of Key URL's to the targetAspect with given name.
IAspectgetAspect(java.lang.String aspectName,
java.lang.String[] urlOfKeys,
LockStrategy lockStrategy)
Creates an Aspect by navigating from Keys of the given array of Key URL's to the targetAspect with given name.
IServiceModuleDescriptorgetDescriptor()
Returns the meta data of this ServiceModule
voidsendChanges()
Sends all pending changes of all Aspects to service layer.
voidsetDebug(boolean enabled,
java.lang.String guiHost)
Enables or disables backend debugging.
Method Detail
createQuery
public IQuery createQuery(java.lang.String queryName)
IQuery, by getting meta data from ServiceModuleDescriptorIllegalArgumentException, if queryName is no valid name for a Query.
queryName - the name of the QueryQueryjava.lang.IllegalArgumentException - queryName is no valid name for a Query.
createAspect
public IAspect createAspect(java.lang.String aspectName)
IAspect by getting meta data from ServiceModuleDescriptor.Aspect is root object of a new Aspect hierarchy, which
is cached in GCP (GenericClientProxy) and can be released by an explicit invalidate() or
implicitly by GCP, when changes on Aspects in cache are executed in backend.IllegalArgumentException, if aspectName is no valid name for a Aspect.
aspectName - the name of the Aspect to createAspectjava.lang.IllegalArgumentException - aspectName is no valid name for an Aspect.
createKeyList
public IKeyList createKeyList(java.lang.String keyName)
IKeyList by getting meta data from ServiceModuleDescriptor.IllegalArgumentException, if keyName is no valid name for a Key.
keyName - the name of the KeyList to createKeyListjava.lang.IllegalArgumentException - keyName is no valid name for a Key.
createKey
public IKey createKey(java.lang.String keyName,
java.lang.String[] keyFields)
IKey by getting meta data from ServiceModuleDescriptor.IllegalArgumentException, if keyName is no valid name for a Key.
keyName - the name of the Key to createkeyFields - the key fields of the Key to createKeyjava.lang.IllegalArgumentException - keyName is no valid name for a Key or key fielda array is null.
getAspect
public IAspect getAspect(java.lang.String aspectName,
IKeyList keyList)
IAspect by navigating from Keys of the given KeyList to the targetAspect with given aspectName.Aspect is root object of a new Aspect hierarchy, which
is cached in GCP (GenericClientProxy) and can be released by an explicit invalidate() or
implicitly by GCP, when changes on Aspects in cache are executed in backend.IllegalArgumentException, if aspectName is no valid name for an Aspect or KeyList is null or of size 0
aspectName - the name of the Aspect to createkeyList - the input Key listAspectjava.lang.IllegalArgumentException - aspectName is no valid name for an Aspect or KeyList is null or of size 0
getAspect
public IAspect getAspect(java.lang.String aspectName,
IKeyList keyList,
LockStrategy lockStrategy)
IAspect by navigating from Keys of the given KeyList to the targetAspect with given name.Aspect is root object of a new Aspect hierarchy, which
is cached in GCP (GenericClientProxy) and can be released by an explicit invalidate() or
implicitly by GCP, when changes on Aspects in cache are executed in backend.IllegalArgumentException, if aspectName is no valid name for an Aspect or KeyList is null or of size 0null
is set, the lock (Shared, SP or Exclusive) resulting from lock strategy is promoted to
backend and the Aspect is read with this lock.
aspectName - the name of the Aspect to createkeyList - the input Key listlockStrategy - indicates how the target aspect rows should be lockedAspectIllegalArgumentException, - if aspectName is no valid name for an Aspect or KeyList is null or of size 0
public IAspect getAspect(java.lang.String aspectName,
java.lang.String[] urlOfKeys)
Aspect by navigating from Keys of the given array of Key URL's to the targetAspect with given name.
This new created Aspect is root object of a new Aspect hierarchy, which
is cached in GCP (GenericClientProxy) and can be released by an explicit invalidate() or
implicitly by GCP, when changes on Aspects in cache are executed in backend.
The method throws an IllegalArgumentException, if aspectName is no valid name for an Aspect or urlOfKeys is null or of size 0
aspectName - the name of the Aspect to createurlOfKeys - the URL's of the Keys to use as input of the select operationAspectIllegalArgumentException, - if aspectName is no valid name for an Aspect or urlOfKeys is null or of size 0
public IAspect getAspect(java.lang.String aspectName,
java.lang.String[] urlOfKeys,
LockStrategy lockStrategy)
Aspect by navigating from Keys of the given array of Key URL's to the targetAspect with given name.
This new created Aspect is root object of a new Aspect hierarchy, which
is cached in GCP (GenericClientProxy) and can be released by an explicit invalidate() or refresh() or
implicitly by GCP, when changes on Aspects in cache are executed in backend.
The method throws an IllegalArgumentException, if aspectName is no valid name for an Aspect or urlOfKeys is null or of size 0
if lockStrategy other than
nullis set, the lock (Shared, SP or Exclusive) resulting from lock strategy is promoted to backend and the Aspect is read with this lock.
aspectName - the name of the Aspect to createurlOfKeys - the URL's of the Keys to use as input of the select operationlockStrategy - indicates how the target aspect rows should be lockedAspectIllegalArgumentException, - if aspectName is no valid name for an Aspect or urlOfKeys is null or of size 0public IServiceModuleDescriptor getDescriptor()
ServiceModuleServiceModulepublic void sendChanges()
Aspects to service layer.There are no special services for insert, update, delete, cause of performance reasons, we bundle and manage all local changes until this method is called. Then all changes are sent to service layer in one step. Example:
aspect.removeAspectRow( myRow );
myUpdatedRow = aspect1.getAspectRow( myKey );
myUpdatedRow.setAttributeValue("NAME1", "BLABLA");
...
serviceModule.sendChanges();
..
public void setDebug(boolean enabled,
java.lang.String guiHost)
enabled - if set to true, the debugging is switched on,
otherwise debugging is switched off.guiHost - the host name of the computer where the GUI should run
or NULL for the default computer.
|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||