public class FilelistenerReadTrx extends Object implements IFilelistenerReadTrx
Modifier and Type | Field and Description |
---|---|
static long |
emptyFileKey
A special Key for empty files
|
protected IBucketReadTrx |
mPageReadTrx
State of transaction including all cached stuff.
|
Constructor and Description |
---|
FilelistenerReadTrx(IBucketReadTrx pPageTrx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotClosed()
Make sure that the session is not yet closed when calling this method.
|
void |
close()
Close this transaction
|
boolean |
fileExists(String pRelativePath)
The returned array consists of all the relative paths there are in the storage.
|
int |
getCount() |
String[] |
getFilePaths()
The returned array consists of all the relative paths there are in the storage.
|
File |
getFullFile(String pRelativePath)
This method allows you to get a full file using the node key of the
header
|
boolean |
isClosed()
Check whether or not this transaction has been closed
|
protected void |
setPageTransaction(IBucketReadTrx paramTransactionState)
Replace the state of the transaction.
|
protected IBucketReadTrx mPageReadTrx
public static final long emptyFileKey
public FilelistenerReadTrx(IBucketReadTrx pPageTrx) throws TTException
pPageTrx
- Transaction state to work with.TTIOException
- if something odd happens within the creation process.TTException
public String[] getFilePaths()
getFilePaths
in interface IFilelistenerReadTrx
public boolean fileExists(String pRelativePath)
fileExists
in interface IFilelistenerReadTrx
public File getFullFile(String pRelativePath) throws TTIOException, IOException
getFullFile
in interface IFilelistenerReadTrx
TTIOException
IOException
public int getCount()
getCount
in interface IFilelistenerReadTrx
public void close() throws TTIOException
close
in interface IFilelistenerReadTrx
TTIOException
public boolean isClosed()
isClosed
in interface IFilelistenerReadTrx
protected final void assertNotClosed()
protected final void setPageTransaction(IBucketReadTrx paramTransactionState)
paramTransactionState
- State of transaction.Copyright © 2013. All Rights Reserved.