Package com.mckoi.database
Interface RawDiagnosticTable
public interface RawDiagnosticTable
An interface that allows for the inspection and repair of the raw data
in a file. This is used for table debugging and the repair of damaged
files.
- Author:
- Tobias Downer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Statics that represent the various states of a record.static final int
Statics that represent the various states of a record.static final int
Statics that represent the various states of a record.static final int
Denotes an erroneous record state.static final int
Statics that represent the various states of a record. -
Method Summary
Modifier and TypeMethodDescriptiongetCellContents
(int column, int record_index) Returns the contents of the given cell in this table.Returns the DataTableDef object that describes the logical topology of the columns in this table.int
Returns the number of physical records in the table.recordMiscInformation
(int record_index) Returns any misc information regarding this row as a human readable string.int
recordSize
(int record_index) The number of bytes the record takes up on the underlying media.int
recordState
(int record_index) Returns the state of the given record index.
-
Field Details
-
UNCOMMITTED
static final int UNCOMMITTEDStatics that represent the various states of a record.- See Also:
-
COMMITTED_ADDED
static final int COMMITTED_ADDEDStatics that represent the various states of a record.- See Also:
-
COMMITTED_REMOVED
static final int COMMITTED_REMOVEDStatics that represent the various states of a record.- See Also:
-
DELETED
static final int DELETEDStatics that represent the various states of a record.- See Also:
-
RECORD_STATE_ERROR
static final int RECORD_STATE_ERRORDenotes an erroneous record state.- See Also:
-
-
Method Details
-
physicalRecordCount
int physicalRecordCount()Returns the number of physical records in the table. This includes records that are uncommitted, deleted, committed removed and committed added. -
getDataTableDef
DataTableDef getDataTableDef()Returns the DataTableDef object that describes the logical topology of the columns in this table. -
recordState
int recordState(int record_index) Returns the state of the given record index. The state of a row is either UNCOMMITTED, COMMITTED ADDED, COMMITTED REMOVED or DELETED. record_index should be between 0 and physicalRecordCount. -
recordSize
int recordSize(int record_index) The number of bytes the record takes up on the underlying media. -
getCellContents
Returns the contents of the given cell in this table. If the system is unable to return a valid cell then an exception is thrown. -
recordMiscInformation
Returns any misc information regarding this row as a human readable string. May return null if there is no misc information associated with this record.
-