public class TAEnabledUTFWriterImpl extends Object implements TAEnabledUTFWriter
| Constructor and Description |
|---|
TAEnabledUTFWriterImpl(String connectionId,
UTFWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Schliesst die Datei und den FileChannel
|
void |
commit() |
String |
getConnectionId() |
IXADataRecorder |
getXADataRecorder() |
boolean |
isAutoCommit() |
boolean |
isClosed()
zeigt an, ob die Instanz geschlossen ist
|
void |
prepare()
definiert den gueltigen Zustand nach commit
|
List<String> |
readContent()
reads the content
|
IDataRecordReplay |
recoverReplayListener()
This callback delivers the from the persistence store if the transaction/connection
has been interrupted an has ended abnormal.
|
void |
reset()
bereitet die Writer zur Wiederverwendung vor
|
void |
resetContent()
resets the content of the file associated with die current transaction
|
void |
rollback() |
void |
setAutoCommit(boolean autoCommit)
set Autocommit
|
void |
setXADataRecorder(IXADataRecorder xaDataRecorder)
sets the current datzaRecorder.
|
String |
toString() |
TAEnabledUTFWriter |
write(String value)
writes a string to file
|
public String getConnectionId()
getConnectionId in interface TAEnabledUTFWriterpublic boolean isAutoCommit()
isAutoCommit in interface IAutoCommitAwarepublic void setAutoCommit(boolean autoCommit)
IAutoCommitAwaresetAutoCommit in interface IAutoCommitAwarepublic void close()
close in interface IPhynixxConnectionpublic boolean isClosed()
@RequiresTransaction public void resetContent() throws IOException
TAEnabledUTFWriterresetContent in interface TAEnabledUTFWriterIOException@RequiresTransaction public TAEnabledUTFWriter write(String value) throws IOException
TAEnabledUTFWriterwrite in interface TAEnabledUTFWriterIOExceptionpublic List<String> readContent() throws IOException
TAEnabledUTFWriterreadContent in interface TAEnabledUTFWriterIOExceptionpublic void reset()
reset in interface IPhynixxConnectionpublic void commit()
commit in interface IPhynixxConnectionpublic void rollback()
rollback in interface IPhynixxConnectionpublic void prepare()
prepare in interface IPhynixxConnectionpublic void setXADataRecorder(IXADataRecorder xaDataRecorder)
IXADataRecorderAwaresetXADataRecorder in interface IXADataRecorderAwarexaDataRecorder - public IXADataRecorder getXADataRecorder()
getXADataRecorder in interface IXADataRecorderAwarepublic IDataRecordReplay recoverReplayListener()
IXADataRecorderAwarerecoverReplayListener in interface IXADataRecorderAwareCopyright © 2017. All rights reserved.