All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.logicbus.kvalue.xscript.KVDel Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.logicbus.kvalue.xscript;

import java.util.Map;

import com.alogic.xscript.ExecuteWatcher;
import com.alogic.xscript.Logiclet;
import com.alogic.xscript.LogicletContext;
import com.logicbus.kvalue.core.KeyValueRow;

/**
 * 删除当前ROW
 * 
 * @author duanyy
 *
 */
public class KVDel extends KVRowOperation {

	public KVDel(String tag, Logiclet p) {
		super(tag, p);
	}

	@Override
	protected void onExecute(KeyValueRow row, Map root, Map current,
			LogicletContext ctx, ExecuteWatcher watcher) {
		ctx.SetValue(id, Boolean.toString(row.delete()));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy