|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modelsphere.jack.baseDb.db.DbUpdateCommand
org.modelsphere.jack.baseDb.db.DbReinsertCommand
public class DbReinsertCommand
Command for reordering inside a relation (reinsert()). This command uses old and new indexes.
Db.reinsert(DbRelationN, DbObject, int, int)
Constructor Summary | |
---|---|
DbReinsertCommand(DbRelationN dbRelN,
DbObject neighbor,
int oldIndex,
int newIndex)
|
Method Summary | |
---|---|
void |
redo()
Reapply the new value on the object. |
void |
undo()
Set the old value on the object to restore its previous state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbReinsertCommand(DbRelationN dbRelN, DbObject neighbor, int oldIndex, int newIndex)
Method Detail |
---|
public final void undo() throws DbException
DbUpdateCommand
undo
in class DbUpdateCommand
DbException
public final void redo() throws DbException
DbUpdateCommand
redo
in class DbUpdateCommand
DbException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |