|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.db.Table
public final class Table
This class represents table in database. This class is used from Database.
| Method Summary | |
|---|---|
int |
addRecord(TableRecord t,
boolean canBeDuplicity)
Přidá řádek do tabulky |
void |
clearTable()
|
TableRecord |
createRecord()
Creates object of table's row |
void |
deleteRecord(int indexID,
int indexPosition)
|
void |
deleteRecord(TableRecord r)
|
TableRecord |
findRecord(TableRecord what,
int indexID)
Finds record defined by index parameter "what" and returns his content - saved in table as TableRecord. |
void |
flush()
|
TableRecord |
getFirst()
Returns first row |
TableRecord |
getLast()
Returns last row |
TableRecord |
getNextRecord()
Returns next row or nulls |
TableRecord |
getPreviousRecord()
Returns previous row or nulls |
int |
getRecords()
Returns number of lines in table |
protected void |
init()
|
void |
repackIndexes()
|
int |
setQuery(int byIndex,
TableRecord firstCond,
TableRecord lastCond)
Choose rows from table according index of row - must satisfy condition firstCond<=row<=lastCond. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getRecords()
public TableRecord createRecord()
public TableRecord findRecord(TableRecord what,
int indexID)
what - - looks forindexID - - in which index
public TableRecord getNextRecord()
public TableRecord getPreviousRecord()
public TableRecord getFirst()
public TableRecord getLast()
public int setQuery(int byIndex,
TableRecord firstCond,
TableRecord lastCond)
byIndex - index array for choicefirstCond - first conditionlastCond - last condition
public int addRecord(TableRecord t,
boolean canBeDuplicity)
t - řádekcanBeDuplicity - povolení duplicitních řádků
public void deleteRecord(TableRecord r)
public void deleteRecord(int indexID,
int indexPosition)
public void repackIndexes()
protected void init()
public void flush()
public void clearTable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||