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 BundleOperation
BundleException
- if an error occurspublic void commit(boolean postpone) throws BundleException
commit
in interface BundleOperation
postpone
- 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 BundleOperation
BundleException
- If a failure occured modifiying peristent storage.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.