class RFResource extends java.lang.Object implements FileResource
| Modifier and Type | Field and Description |
|---|---|
private BaseDataFileFactory |
factory |
JAR_DIRECTORY_NAME| Constructor and Description |
|---|
RFResource(BaseDataFileFactory dataFactory) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(java.lang.String name,
java.io.InputStream source)
Add a file resource, copying from the input stream.
|
StorageFile |
getAsFile(java.lang.String name,
long generationId)
Get the StorageFile for a file resource.
|
char |
getSeparatorChar() |
void |
remove(java.lang.String name,
long currentGenerationId)
Remove the current generation of a file resource from
the database.
|
void |
removeJarDir(java.lang.String f)
During hard upgrade to >= 10.9, remove a jar directory (at post-commit
time) from the database.
|
long |
replace(java.lang.String name,
long currentGenerationId,
java.io.InputStream source)
Replace a file resource with a new version.
|
private final BaseDataFileFactory factory
RFResource(BaseDataFileFactory dataFactory)
public long add(java.lang.String name,
java.io.InputStream source)
throws StandardException
FileResourceadd in interface FileResourcename - the name of the file resource.source - an input stream for reading the content of
the file resource.StandardException - OopsFileResource.add(java.lang.String, java.io.InputStream)public void removeJarDir(java.lang.String f)
throws StandardException
FileResourceremoveJarDir in interface FileResourceStandardException - standard error policyFileResource.removeJarDir(java.lang.String)public void remove(java.lang.String name,
long currentGenerationId)
throws StandardException
FileResourceremove in interface FileResourcename - the name of the fileResource to remove.StandardException - OopsFileResource.remove(java.lang.String, long)public long replace(java.lang.String name,
long currentGenerationId,
java.io.InputStream source)
throws StandardException
FileResourceThe InputStream will be closed by this method.
replace in interface FileResourcename - the name of the file resource.source - an input stream for reading the content of
the file resource.StandardException - OopsFileResource.replace(java.lang.String, long, java.io.InputStream)public StorageFile getAsFile(java.lang.String name, long generationId)
FileResourcegetAsFile in interface FileResourcename - The name of the fileResourcegenerationId - the generationId of the fileResourceFileResource.getAsFile(java.lang.String, long)public char getSeparatorChar()
getSeparatorChar in interface FileResourceApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.