|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--RMtable
This class contains the collection of RM objects in a table.
| Field Summary | |
java.util.Vector |
Rows
|
| Constructor Summary | |
RMtable(Database mySchema)
RMtable constructor Initializes table name, abbreviation, row count and allocates space for the row objects in the table |
|
| Method Summary | |
void |
delete_row_log(RC oldRow)
This method is used to log the call to delete row |
void |
dumpTable(java.io.BufferedWriter output)
Writes the contents of the table row by row to a given output stream. |
java.lang.String |
getAbbrev()
Gets the abbreviation for the table |
RM |
getFirstRow()
Get the first row in the table |
RM |
getLastRow()
Get the last row in the table |
java.lang.String |
getName()
Gets the name of the table |
RM |
getNextRow(RM thisrow)
Given a row in the table, returns the next row |
RM |
getPrevRow(RM thisrow)
Given a row in the table, returns the previous row |
int |
getRowcount()
Gets the number of rows in table |
Database |
getTheSchema()
|
void |
insert_row_log(RM newRow)
This method is used to log the call to insert row |
boolean |
insertRow(RM newRow)
Inserts a new row in the table. |
boolean |
removeRow(RC oldRow)
Deletes a row from the table. |
void |
setTheSchema(Database value)
Attaches the table to a particular database schema |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.Vector Rows
| Constructor Detail |
public RMtable(Database mySchema)
| Method Detail |
public java.lang.String getName()
String containing the table namepublic java.lang.String getAbbrev()
String containing the table namepublic int getRowcount()
integer containing the number of rowspublic RM getFirstRow()
RM which is that rowpublic RM getLastRow()
RM which is that rowpublic RM getNextRow(RM thisrow)
public RM getPrevRow(RM thisrow)
public boolean insertRow(RM newRow)
linkRow method
will be called to link the new row to its sibling rows in turn
public void insert_row_log(RM newRow)
public boolean removeRow(RC oldRow)
unlinkRow method
will be called to unlink the old row from its sibling rows in turn
public void delete_row_log(RC oldRow)
public void dumpTable(java.io.BufferedWriter output)
throws java.io.IOException
IOException - if an error writing is encountered
java.io.IOExceptionpublic Database getTheSchema()
Database object this table belongs topublic void setTheSchema(Database value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||