|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.writebatch.IndirectionTableBatch
public class IndirectionTableBatch
A class representing all changes to be made to an SQL indirection table.
| Constructor Summary | |
|---|---|
|
IndirectionTableBatch(java.lang.String leftColName,
java.lang.String rightColName)
Constructor for this class. |
protected |
IndirectionTableBatch(java.lang.String leftColName,
java.lang.String rightColName,
java.util.Set<Row> toInsert)
Constructor for dodgy temp table deleting stuff |
| Method Summary | |
|---|---|
int |
addRow(int left,
int right)
Adds a row to the batch. |
void |
clear()
Clears the batch. |
int |
deleteRow(int left,
int right)
Deletes a row from the batch. |
java.lang.String |
getLeftColName()
Returns the left column name. |
java.lang.String |
getRightColName()
Returns the right column name. |
java.util.Set<Row> |
getRowsToDelete()
Returns the Set of rows to delete. |
java.util.Set<Row> |
getRowsToInsert()
Returns the Set of rows to insert. |
int |
getSize()
Returns the current amount of data, in bytes, held in this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndirectionTableBatch(java.lang.String leftColName,
java.lang.String rightColName)
leftColName - the left column namerightColName - the right column name
protected IndirectionTableBatch(java.lang.String leftColName,
java.lang.String rightColName,
java.util.Set<Row> toInsert)
leftColName - the left column namerightColName - the right column nametoInsert - the Set of Rows to insert| Method Detail |
|---|
public int addRow(int left,
int right)
left - the left int valueright - the right int value
public int deleteRow(int left,
int right)
left - the left int valueright - the right int value
public java.lang.String getLeftColName()
public java.lang.String getRightColName()
public java.util.Set<Row> getRowsToDelete()
public java.util.Set<Row> getRowsToInsert()
public void clear()
clear in interface Tablepublic int getSize()
getSize in interface Table
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||