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 and Description |
---|---|
private java.lang.String |
operation
Name of the most recently performed operation.
|
Modifier | Constructor and Description |
---|---|
private |
FileOperationHelper() |
Modifier and Type | Method and 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
StandardException
boolean delete(StorageFile file, boolean mustSucceed) throws StandardException
StandardException
boolean renameTo(StorageFile from, StorageFile to, boolean mustSucceed) throws StandardException
StandardException
private 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 true
java.lang.NullPointerException
- if file
or se
is nullApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.