类 JdbcConfigOperation
java.lang.Object
com.gdxsoft.easyweb.script.userConfig.JdbcConfigOperation
- 所有已实现的接口:
Serializable,Cloneable
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void备份到 rm表中booleancheckExists(String xmlname, String itemname) Check the configuration existsbooleancheckPathExists(String xmlPath) Check if the xmlPath is in the databasebooleancheckXmlChanged(String xmlName, int hashCode) 已过时。booleancheckXmlChanged(String xmlName, int hashCode, String md5) 检查文件是否被修改intcombine2OneXml(String xmlname) 将所有配置项合并成一个xml文件,保留到数据库和写到文件缓存中void复制XML配置voidcreatePath(String fileName) 创建目录void创建空白xml配置intdeleteBaks(String xmlname) 删除备份void输出所有配置到缓存目录 (UPath.getCachedPath )获取所有的 xmlname名称getCfgParam(Node node, String tag) 获取 节点的 属性 valueTag = tag
调用 getCfgParam(Node node, String tag, String valueTag)getCfgParam(Node node, String tag, String valueTag) 获取 节点的 属性获取整个文档的xml获取所有目录获取用户配置信息的jdbcgetJdbcItem(String xmlname, String itemname) 获取 itemgetJdbcItems(String xmlname) 获取itemsgetJdbcItemXml(String xmlname, String itemname) 获取 item 的 xml字符串getJdbcTable(String sql, RequestValue rv) 获取表获取其它配置的值获取xmlname对应的xmlgetXmlMeta(String xmlname) 获取配置文件的概要信息getXmlMeta(String xmlname, String itemname) 获取配置项的概要信息voidImport the XML configurationvoid导入整个配置文件voidimportXmlEle(Element ele, String xmlname) 导入配置booleanisHsqlDb()Check if the database type is HSQLDBboolean用户配置信息是在数据库保存voidremoveItem(String xmlname, String itemname) 删除配置voidrenameItem(String xmlname, String newItemName, String oldItemName, String xml) 重命名voidrenameTree(String path, String newName) 修改目录的名称voidsaveBackup(String xmlname, String itemname) 备份配置booleansaveToCache(String xmlName, String xml, long time) 已过时。booleansaveToCache(String xmlName, String xml, long time, int hashCode, String md5) 保存到本地缓存voidupdate(String sql, RequestValue rv) 更新数据voidupdateItem(String xmlname, String itemname, String xmlStr, String adm) 更新配置项void更新配置项void更新其它数据voidupdates(List<String> sqls, RequestValue rv) 批量更新
-
构造器详细资料
-
JdbcConfigOperation
-
-
方法详细资料
-
isHsqlDb
public boolean isHsqlDb()Check if the database type is HSQLDB- 返回:
- true=HSQLDB/false=not
-
checkPathExists
Check if the xmlPath is in the database- 参数:
xmlPath-- 返回:
- true=in/false=not
-
importXml
Import the XML configuration- 参数:
xml- The XML configuration filexmlname- The imported name- 抛出:
Exception
-
importXml
导入整个配置文件- 参数:
xmlStr-xmlname-cdate-udate-
-
importXmlEle
导入配置- 参数:
ele-xmlname-
-
getOth
获取其它配置的值- 参数:
tag-- 返回:
-
updateOth
更新其它数据- 参数:
tag-txt-admId-
-
deleteBaks
删除备份- 参数:
xmlname-- 返回:
-
createXml
创建空白xml配置- 参数:
fileName-admId-
-
createPath
创建目录- 参数:
fileName-
-
copyXml
复制XML配置- 参数:
from-to-admId-
-
renameTree
修改目录的名称- 参数:
path-newName-
-
renameItem
重命名- 参数:
xmlname-newItemName-oldItemName-xml-
-
backToRm
备份到 rm表中- 参数:
xmlname-itemname-
-
removeItem
删除配置- 参数:
xmlname-itemname-
-
saveBackup
备份配置- 参数:
xmlname-itemname-
-
getXmlMeta
获取配置文件的概要信息- 参数:
xmlname-- 返回:
-
getXmlMeta
获取配置项的概要信息- 参数:
xmlname-itemname-- 返回:
-
getCfgParam
获取 节点的 属性 valueTag = tag
调用 getCfgParam(Node node, String tag, String valueTag)- 参数:
node- Xml Node对象tag- 节点tag名称,例如 DataSource, Acl ...- 返回:
-
getCfgParam
获取 节点的 属性- 参数:
node- Xml Node对象tag- 节点tag名称,例如 DataSource, Acl ...valueTag- Set 的属性名- 返回:
-
updateItem
public void updateItem(String xmlname, String itemname, String xmlStr, String adm, int hashCode, String md5) 更新配置项- 参数:
xmlname-itemname-xmlStr-adm-hashCode-md5-
-
updateItem
更新配置项- 参数:
xmlname-itemname-xmlStr-adm-
-
getDocXml
获取整个文档的xml- 参数:
xmlname-- 返回:
-
combine2OneXml
将所有配置项合并成一个xml文件,保留到数据库和写到文件缓存中- 参数:
xmlname-
-
saveToCache
保存到本地缓存- 参数:
xmlName-xml-time-hashCode-md5-- 返回:
-
saveToCache
已过时。保存到本地缓存- 参数:
xmlName-xml-time-- 返回:
-
checkXmlChanged
已过时。检查文件是否被修改- 参数:
xmlName-hashCode-- 返回:
-
checkXmlChanged
检查文件是否被修改- 参数:
xmlName-hashCode-- 返回:
-
exportAll
输出所有配置到缓存目录 (UPath.getCachedPath )- 抛出:
Exception
-
getAllXmlnames
获取所有的 xmlname名称- 返回:
-
getXml
获取xmlname对应的xml- 参数:
xmlName-- 返回:
-
getJdbcCfgDirs
获取所有目录- 返回:
-
getJdbcItems
获取items- 参数:
xmlname-- 返回:
-
checkExists
Check the configuration exists- 参数:
xmlname-itemname-- 返回:
-
getJdbcItem
获取 item- 参数:
xmlname-itemname-- 返回:
-
getJdbcItemXml
获取 item 的 xml字符串- 参数:
xmlname-itemname-- 返回:
-
updates
批量更新- 参数:
sqls-rv-
-
update
更新数据- 参数:
sql-rv-
-
getJdbcTable
获取表- 参数:
sql-rv-- 返回:
-
isJdbcResources
public boolean isJdbcResources()用户配置信息是在数据库保存- 返回:
-
getJdbcConfigName
获取用户配置信息的jdbc- 返回:
-