|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Store for macro opertations support. This store executes compound operations
on hierarchical data. A recursive copy, a recursive delete and a recursive
move resp. rename are supported provided the isMacroCopySupported(),
isMacroMoveSupported()and/or isMacroDeleteSupported()
indicate this. By having checks for all three macro opertations stores can
dynamically decide which kind of operations they support. E.g. This allows
for stores that only support recursive deletes.
| Field Summary |
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Method Summary | |
boolean |
isMacroCopySupported()
Checks if this store instance actually supports macro copy operation. |
boolean |
isMacroDeleteSupported()
Checks if this store instance actually supports macro delete operation. |
boolean |
isMacroMoveSupported()
Checks if this store instance actually supports macro move operation. |
void |
macroCopy(Uri sourceUri,
Uri targetUri,
boolean overwrite,
boolean recursive)
Recursively copies an object. |
void |
macroDelete(Uri targetUri)
Deletes an object recursively. |
void |
macroMove(Uri sourceUri,
Uri targetUri,
boolean overwrite)
Recursively moves an object. |
| Methods inherited from interface org.apache.slide.common.Service |
cacheResults, connect, connect, connectIfNeeded, connectIfNeeded, disconnect, getLogger, initialize, isConnected, reset, setNamespace, setParameters, setScope |
| Methods inherited from interface javax.transaction.xa.XAResource |
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
| Method Detail |
public boolean isMacroDeleteSupported()
true if the store supports the macro delete
operation, false otherwise
public void macroDelete(Uri targetUri)
throws ServiceAccessException,
ObjectNotFoundException
targetUri - Uri of the object to delete
ObjectNotFoundException - if the object to delete was not found
ServiceAccessException - if anything else goes wrong while deleting the objectpublic boolean isMacroCopySupported()
true if the store supports the macro copy
operation, false otherwise
public void macroCopy(Uri sourceUri,
Uri targetUri,
boolean overwrite,
boolean recursive)
throws ServiceAccessException,
ObjectNotFoundException,
ObjectAlreadyExistsException
sourceUri - the source URI of the copytargetUri - the destination URI of the copyoverwrite - true if the target shall be copied to even if it already exsisrecursive - true if all descendants of the source should be copied as well
ObjectNotFoundException - if the object to copy from was not found
ObjectAlreadyExistsException - if the object to copy to to was already there
ServiceAccessException - if anything else goes wrong while copying the objectpublic boolean isMacroMoveSupported()
true if the store supports the macro move
operation, false otherwise
public void macroMove(Uri sourceUri,
Uri targetUri,
boolean overwrite)
throws ServiceAccessException,
ObjectNotFoundException,
ObjectAlreadyExistsException
sourceUri - the source URI of the movetargetUri - the destination URI of the moveoverwrite - true if the target shall be copied to even if it already exsis
ObjectNotFoundException - if the object to move from was not found
ObjectAlreadyExistsException - if the object to move to to was already there
ServiceAccessException - if anything else goes wrong while moving the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||