public class BundleUpdate extends Object implements BundleOperation
| Constructor and Description |
|---|
BundleUpdate(BaseData data,
URLConnection source,
BaseStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
BundleData |
begin()
Perform the change to persistent storage.
|
void |
commit(boolean postpone)
Commit the change to persistent storage.
|
void |
undo()
Undo the change to persistent storage.
|
public BundleUpdate(BaseData data, URLConnection source, BaseStorage storage)
public BundleData begin() throws BundleException
begin in interface BundleOperationBundleException - if an error occurspublic void commit(boolean postpone)
throws BundleException
commit in interface BundleOperationpostpone - If true, the bundle's persistent
storage cannot be immediately reclaimed.BundleException - If a failure occured modifiying peristent storage.public void undo()
throws BundleException
undo in interface BundleOperationBundleException - If a failure occured modifiying peristent storage.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.