org.modelsphere.jack.baseDb.db
Class DbSetRelationNNCommand
java.lang.Object
org.modelsphere.jack.baseDb.db.DbUpdateCommand
org.modelsphere.jack.baseDb.db.DbSetRelationNNCommand
public class DbSetRelationNNCommand
- extends DbUpdateCommand
This command class is used to record setRelationNN() operations on a given DbObject.
- See Also:
DbSetCommand
,
Db.setRelationNN(DbObject, MetaRelationN, DbObject, int, int, int)
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 |
DbSetRelationNNCommand
public DbSetRelationNNCommand(DbObject updatedObject,
MetaRelationN relation,
DbObject neighbor,
int op,
int index,
int oppositeIndex)
undo
public final void undo()
throws DbException
- Description copied from class:
DbUpdateCommand
- Set the old value on the object to restore its previous state.
- Specified by:
undo
in class DbUpdateCommand
- Throws:
DbException
redo
public final void redo()
throws DbException
- Description copied from class:
DbUpdateCommand
- Reapply the new value on the object.
- Specified by:
redo
in class DbUpdateCommand
- Throws:
DbException
Open ModelSphere 2007. All Rights Reserved.