xworker.org.jedis.JedisPool.dml Maven / Gradle / Ivy
%1659495200615
@
sname=JedisPool
slabel=JedisPool
sdescriptors=xworker.lang.MetaDescriptor3
smany=true
seditCols=2
sformNoLabel=false
sinitialization=false
sgroup=db
smodifier=public
sinheritDescription=false
sdefaultEditor=form
Sdescription=
#$@text#$@
JedisPool。
注册
可以注册到xworker.org.jedis.JedisPools下。
#$@text#$@
snotXmlAttribute=false
sjson_isArray=false
sjson_attribute=false
sth_createIndex=true
sth_registThing=child|xworker.lang.Configurations
sth_registMyChilds=false
sth_registDisabled=false
sth_noThingRegistViewer=false
sth_fileMonitor=false
sth_deprecated=false
sth_mark=false
sth_registQueryOnlySelf=false
@/@actions
sname=actions
slabel=actions
sdescriptors=xworker.lang.MetaDescriptor3/@actions
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=actions
@/@actions/@create
sname=getJedisPool
sisSynchronized=false
sthrowException=true
suseOtherAction=false
suseOuterJava=true
suseInnerJava=false
souterClassName=xworker.org.jedis.JedisPoolActions
smethodName=getJedisPool
sdisableGlobalContext=false
sattributeTemplate=false
sinterpretationType=Action
svarScope=Global
screateLocalVarScope=false
ssaveReturn=false
sswitchResult=false
sdebugLog=false
sdescriptors=xworker.lang.actions.Actions/@JavaAction
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=create
@/@actions/@getHost
sname=getHost
sattributeName=host
snotNull=false
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.lang.actions.ActionUtil/@GetString
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=getHost
@/@actions/@getPort
sname=getPort
sattributeName=port
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.lang.actions.ActionUtil/@GetInt
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=getPort
@/@actions/@getTimeout
sname=getTimeout
sattributeName=timeout
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.lang.actions.ActionUtil/@GetInt
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=getTimeout
@/@actions/@getPassword
sname=getPassword
sattributeName=password
snotNull=false
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.lang.actions.ActionUtil/@GetString
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=getPassword
@/@actions/@getDatabase
sname=getDatabase
sattributeName=database
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.lang.actions.ActionUtil/@GetInt
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=getDatabase
@/@name
sname=name
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=name
@/@label
sname=label
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=label
@/@host
sname=host
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=host
@/@port
sname=port
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=port
@/@timeout
sname=timeout
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sdefault=2000
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=timeout
@/@password
sname=password
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=password
@/@database
sname=database
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sdefault=0
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=database
@/@description
sname=description
sinputtype=html
sshowLabel=true
slabelAlign=right
slabelVAlign=baseline
smodifier=public
sreadOnly=false
sinheritDescription=false
svalidateAllowBlank=true
LvalidateOnBlur=true
LallowDecimals=true
LallowNegative=true
snotXmlAttribute=false
sdescriptors=xworker.lang.MetaDescriptor3/@attribute
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_fileMonitor=false
sth_mark=false
sid=description
@/@sswtMenus
sname=sswtMenus
slabel=sswtMenus
sdescriptors=xworker.lang.MetaDescriptor3/@swtMenus
sid=sswtMenus
@/@sswtMenus/@menuDefine
sname=menuDefine
slabel=menuDefine
sdescriptors=xworker.lang.MetaDescriptor3/@swtMenus/@menuDefine
sid=menuDefine
@/@sswtMenus/@menuDefine/@DataSource
sname=Jedis
slabel=Jedis
sdescriptors=xworker.lang.ThingMenu/@menuDefine/@menu
sid=DataSource
@/@sswtMenus/@DataSource
sname=Jedis
stype=data
smenuType=Jedis
slabel=Jedis
sdescriptors=xworker.lang.MetaDescriptor3/@swtMenus/@menuSetting
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_noThingRegistViewer=false
sth_fileMonitor=false
sth_deprecated=false
sth_mark=false
sth_registQueryOnlySelf=false
sid=DataSource
@/@sswtMenus/@DataSource/@testDataSource
sname=testDataSource
slabel=测试连接
sisSplit=false
sattachParam=true
sdescriptors=xworker.lang.ThingMenu/@menuSetting/@menu
sid=testDataSource
@/@sswtMenus/@DataSource/@testDataSource/@actions
sname=actions
slabel=actions
sdescriptors=xworker.lang.Menu/@actions
sid=actions
@/@sswtMenus/@DataSource/@testDataSource/@actions/@test
sname=test
sisSynchronized=false
sthrowException=true
suseOtherAction=false
svarScope=Local
sdisableGlobalContext=false
Scode=
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;
import org.xmeta.ActionContext;
def coolBar = actionContext.get("coolBar");
def thing = actionContext.get("currentThing");
def display = coolBar.getShell().display;
def success = success;
def failure = failure;
new Thread({
display.asyncExec({
try{
def ac = new ActionContext();
def pool = thing.doAction("getJedisPool", actionContext);
if(pool == null || pool.isClosed()){
failure(actionContext);
return;
}
success(actionContext);
}catch(Exception e){
failure(actionContext);
}
});
}).start();
#$@text#$@
sinterpretationType=Action
screateLocalVarScope=false
ssaveReturn=false
sswitchResult=false
sdebugLog=false
sdescriptors=xworker.lang.actions.Actions/@GroovyAction
sid=test
@/@sswtMenus/@DataSource/@testDataSource/@actions/@test/@ActionDefined
sname=ActionDefined
sdescriptors=xworker.lang.actions.Inout/@ActionDefined
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_noThingRegistViewer=false
sth_fileMonitor=false
sth_mark=false
sth_registQueryOnlySelf=false
sid=ActionDefined
@/@sswtMenus/@DataSource/@testDataSource/@actions/@test/@ActionDefined/@msg
sname=success
sshell=ognl:coolBar.getShell()
sicon=ICON_INFORMATION
sbuttons=OK
stitle=lang:d=测试Jedis&en=Test Jedis
smessage=lang:d=测试成功,Jedis已连接服务器。&en=Test successed, Jedis has connected to server.
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sswitchResult=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.swt.actions.MessageBoxActions/@MessageBox
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_noThingRegistViewer=false
sth_fileMonitor=false
sth_mark=false
sth_registQueryOnlySelf=false
sid=msg
@/@sswtMenus/@DataSource/@testDataSource/@actions/@test/@ActionDefined/@msg1
sname=failure
sshell=ognl:coolBar.getShell()
sicon=ICON_ERROR
sbuttons=OK
stitle=lang:d=测试Jedis&en=Test Jedis
smessage=lang:d=测试失败,Jedis连接服务器失败。&en=Test failed, jedis failed to connect to the server.
sinterpretationType=Self
sattributeTemplate=false
schildsAttributeTemplate=false
svarScope=Local
sisSynchronized=false
sthrowException=true
screateLocalVarScope=false
ssaveReturn=false
sswitchResult=false
sdisableGlobalContext=false
sdebugLog=false
sdescriptors=xworker.swt.actions.MessageBoxActions/@MessageBox
sinheritDescription=false
sth_createIndex=false
sth_registMyChilds=false
sth_registDisabled=false
sth_noThingRegistViewer=false
sth_fileMonitor=false
sth_mark=false
sth_registQueryOnlySelf=false
sid=msg1