Class LCommandCompact
java.lang.Object
com.io7m.laurel.filemodel.internal.LCommandAbstract<com.io7m.darco.api.DDatabaseUnit>
com.io7m.laurel.filemodel.internal.LCommandCompact
- All Implemented Interfaces:
LCommandType<com.io7m.darco.api.DDatabaseUnit>
Compact a file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()protected LCommandUndoableonExecute(LFileModel model, LDatabaseTransactionType transaction, com.io7m.darco.api.DDatabaseUnit request) protected voidonRedo(LFileModel model, LDatabaseTransactionType transaction) protected voidonUndo(LFileModel model, LDatabaseTransactionType transaction) static LCommandFactoryType<com.io7m.darco.api.DDatabaseUnit> provider()Methods inherited from class LCommandAbstract
execute, isExecuted, redo, setExecuted, undoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LCommandType
loading, requiresCompaction, serialize
-
Constructor Details
-
LCommandCompact
public LCommandCompact()Compact a file.
-
-
Method Details
-
provider
- Returns:
- A command factory
-
onExecute
protected LCommandUndoable onExecute(LFileModel model, LDatabaseTransactionType transaction, com.io7m.darco.api.DDatabaseUnit request) throws com.io7m.darco.api.DDatabaseException - Specified by:
onExecutein classLCommandAbstract<com.io7m.darco.api.DDatabaseUnit>- Throws:
com.io7m.darco.api.DDatabaseException
-
onUndo
- Specified by:
onUndoin classLCommandAbstract<com.io7m.darco.api.DDatabaseUnit>
-
onRedo
- Specified by:
onRedoin classLCommandAbstract<com.io7m.darco.api.DDatabaseUnit>
-
toProperties
- Returns:
- The command as a set of properties
-
describe
- Returns:
- A humanly-readable description of the operation
-