prompto.code.Batch Maven / Gradle / Ivy
The newest version!
package prompto.code;
import java.util.List;
import prompto.error.PromptoError;
import prompto.runtime.Context;
import prompto.store.IStorable;
import prompto.store.IStore;
import prompto.store.IStored;
public class Batch extends Module implements IApplication {
private String startMethod;
public String getStartMethod() {
return startMethod;
}
public void setStartMethod(String startMethod) {
this.startMethod = startMethod;
}
@Override
public ModuleType getType() {
return ModuleType.BATCH;
}
@Override
public IStorable collectStorables(Context context, IStore store, List storables) throws PromptoError {
IStorable storable = super.collectStorables(context, store, storables);
storable.setData("startMethod", startMethod);
return storable;
}
@Override
public void fromStored(IStore store, IStored stored) {
super.fromStored(store, stored);
setStartMethod((String)stored.getData("startMethod"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy