|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--suncertify.db.util.RecordStructure
The clas contains information about the record structure in a database
Constructor Summary | |
RecordStructure(int overallLength,
short numberOfFields,
java.io.RandomAccessFile randomAccessFile)
RecordStructure constructor, it reads all the header information from the db file. |
Method Summary | |
int |
getFieldSize(int i)
Method returns number of bytes for the specified column |
int |
getNumberOfBytesOfHeader()
Method returns overall number of bytes taken by the header infromation |
int |
getRecordLength()
Rturns the total length of the record in bytes |
java.lang.String |
toString()
Method returns all the header information nicly formated for printing |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RecordStructure(int overallLength, short numberOfFields, java.io.RandomAccessFile randomAccessFile) throws java.io.IOException
overallLength
- - total overall length in bytes of each recordnumberOfFields
- - number of fields in a recordrandomAccessFile
- - reference to the db file
java.io.IOException
- - thrown in case of file access problemsMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public int getNumberOfBytesOfHeader()
public int getRecordLength()
public int getFieldSize(int i)
i
- - index of the data column
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |