private static class StorageFactoryService.FileOperationHelper
extends java.lang.Object
Introduced to take care of error reporting for common file operations carried out in StorageFactoryService.
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
operation |
Name of the most recently performed operation.
|
| Modifier | Constructor | Description |
|---|---|---|
private |
FileOperationHelper() |
| Modifier and Type | Method | Description |
|---|---|---|
(package private) boolean |
delete(StorageFile file,
boolean mustSucceed) |
|
(package private) boolean |
exists(StorageFile file,
boolean mustSucceed) |
|
private void |
handleSecPrivException(StorageFile file,
boolean mustSucceed,
java.lang.SecurityException se) |
Handles security exceptions caused by missing privileges on the
files being accessed.
|
(package private) boolean |
renameTo(StorageFile from,
StorageFile to,
boolean mustSucceed) |
private java.lang.String operation
boolean exists(StorageFile file, boolean mustSucceed) throws StandardException
StandardExceptionboolean delete(StorageFile file, boolean mustSucceed) throws StandardException
StandardExceptionboolean renameTo(StorageFile from, StorageFile to, boolean mustSucceed) throws StandardException
StandardExceptionprivate void handleSecPrivException(StorageFile file, boolean mustSucceed, java.lang.SecurityException se) throws StandardException
file - the file that was accessedmustSucceed - if true a StandardException will
be thrown, if false a warning is written to the logse - the security exception raisedStandardException - if mustSucceed is truejava.lang.NullPointerException - if file or se is nullApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.