Top Fields Constructors Methods
org.apache.derby.impl.store.raw.data

pack-priv Class RFResource

Additional top-level class in compilation unit: RemoveFile.

extends Object
implements FileResource
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.store.access.FileResource
Imports
java.io.FileNotFoundException, .IOException, .InputStream, .OutputStream, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, .ContextService, org.apache.derby.iapi.services.daemon.Serviceable, org.apache.derby.iapi.store.access.AccessFactoryGlobals, .FileResource, org.apache.derby.iapi.store.raw.xact.RawTransaction, org.apache.derby.io.StorageFile

Field Summary

Modifier and TypeField and Description
private final BaseDataFileFactory

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
add(String
the name of the file resource.
name
,
InputStream
an input stream for reading the content of the file resource.
source
)

Implements org.apache.derby.iapi.store.access.FileResource.add.

Add a file resource, copying from the input stream.

public StorageFile
getAsFile(String
The name of the fileResource
name
,
long
the generationId of the fileResource
generationId
)

Implements org.apache.derby.iapi.store.access.FileResource.getAsFile.

Get the StorageFile for a file resource.

public char
public void
remove(String
the name of the fileResource to remove.
name
,
long currentGenerationId)

Implements org.apache.derby.iapi.store.access.FileResource.remove.

Remove the current generation of a file resource from the database.

public void
removeJarDir(String f)

Implements org.apache.derby.iapi.store.access.FileResource.removeJarDir.

During hard upgrade to <= 10.9, remove a jar directory (at post-commit time) from the database.

public long
replace(String
the name of the file resource.
name
,
long currentGenerationId, InputStream
an input stream for reading the content of the file resource.
source
)

Implements org.apache.derby.iapi.store.access.FileResource.replace.

Replace a file resource with a new version.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private final BaseDataFileFactory factory

Constructor Detail

RFResourceback to summary
pack-priv RFResource(BaseDataFileFactory dataFactory)

Method Detail

addback to summary
public long add(String name, InputStream source) throws StandardException

Implements org.apache.derby.iapi.store.access.FileResource.add.

Doc from org.apache.derby.iapi.store.access.FileResource.add.

Add a file resource, copying from the input stream. The InputStream will be closed by this method.

Parameters
name:String

the name of the file resource.

source:InputStream

an input stream for reading the content of the file resource.

Returns:long

the generationId for the file resource. This quantity increases when you replace the file resource.

Exceptions
StandardException:
Oops
See Also
FileResource#add
getAsFileback to summary
public StorageFile getAsFile(String name, long generationId)

Implements org.apache.derby.iapi.store.access.FileResource.getAsFile.

Doc from org.apache.derby.iapi.store.access.FileResource.getAsFile.

Get the StorageFile for a file resource.

Parameters
name:String

The name of the fileResource

generationId:long

the generationId of the fileResource

Returns:StorageFile

A StorageFile object representing the file.

See Also
FileResource#getAsFile
getSeparatorCharback to summary
public char getSeparatorChar()

Implements org.apache.derby.iapi.store.access.FileResource.getSeparatorChar.

Returns:char

Doc from org.apache.derby.iapi.store.access.FileResource.getSeparatorChar.

the separator character to be used in file names.

removeback to summary
public void remove(String name, long currentGenerationId) throws StandardException

Implements org.apache.derby.iapi.store.access.FileResource.remove.

Doc from org.apache.derby.iapi.store.access.FileResource.remove.

Remove the current generation of a file resource from the database.

Parameters
name:String

the name of the fileResource to remove.

Exceptions
StandardException:
Oops
See Also
FileResource#remove
removeJarDirback to summary
public void removeJarDir(String f) throws StandardException

Implements org.apache.derby.iapi.store.access.FileResource.removeJarDir.

Doc from org.apache.derby.iapi.store.access.FileResource.removeJarDir.

During hard upgrade to <= 10.9, remove a jar directory (at post-commit time) from the database.

Exceptions
StandardException:
if an error occurs
See Also
FileResource#removeJarDir
replaceback to summary
public long replace(String name, long currentGenerationId, InputStream source) throws StandardException

Implements org.apache.derby.iapi.store.access.FileResource.replace.

Doc from org.apache.derby.iapi.store.access.FileResource.replace.

Replace a file resource with a new version.

The InputStream will be closed by this method.

Parameters
name:String

the name of the file resource.

source:InputStream

an input stream for reading the content of the file resource.

Returns:long

the generationId for the new 'current' version of the file resource.

Exceptions
StandardException:
Oops
See Also
FileResource#replace