本文整理汇总了Java中com.openbravo.data.loader.BatchSentence类的典型用法代码示例。如果您正苦于以下问题:Java BatchSentence类的具体用法?Java BatchSentence怎么用?Java BatchSentence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BatchSentence类属于com.openbravo.data.loader包,在下文中一共展示了BatchSentence类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addFKeys
import com.openbravo.data.loader.BatchSentence; //导入依赖的package包/类
/**
*
* @return
*/
public Boolean addFKeys() {
if ("".equals(eScript3)) {
return (false);
}
try {
BatchSentence bsentence = new BatchSentenceResource(session2, eScript3);
java.util.List l = bsentence.list();
if (l.size() > 0) {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("migration.warning"), l.toArray(new Throwable[l.size()])));
}
} catch (BasicException e) {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_DANGER, AppLocal.getIntString("database.ScriptNotFound"), e));
session.close();
} finally {
}
return (true);
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:24,代码来源:JPaneldbMigrate.java
示例2: performUpdate
import com.openbravo.data.loader.BatchSentence; //导入依赖的package包/类
/**
*
* @param sScript
*/
public void performUpdate(String sScript){
switch (sdbmanager) {
case "HSQL Database Engine":
eScript = "/com/openbravo/pos/scripts/HSQLDB" + sScript;
break;
case "MySQL":
eScript = "/com/openbravo/pos/scripts/MySQL" + sScript;
break;
case "PostgreSQL":
eScript = "/com/openbravo/pos/scripts/PostgreSQL" + sScript;
break;
case "Oracle":
eScript = "/com/openbravo/pos/scripts/Oracle" + sScript;
break;
case "Apache Derby":
eScript = "/com/openbravo/pos/scripts/Derby" + sScript;
break;
default:
eScript = "/com/openbravo/pos/scripts/Derby" + sScript;
break;
}
// update database using updater scripts
try {
BatchSentence bsentence = new BatchSentenceResource(session, eScript);
java.util.List l = bsentence.list();
if (l.size() > 0) {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("database.UpdaterWarning"), l.toArray(new Throwable[l.size()])));
}else{
JOptionPane.showMessageDialog(this,"Update complete.");
}
} catch (BasicException e) {
JMessageDialog.showMessage(this, new MessageInf(MessageInf.SGN_DANGER, AppLocal.getIntString("database.ScriptNotFound"), e));
session.close();
} finally{
}
}
开发者ID:gnoopy,项目名称:wifepos,代码行数:45,代码来源:JPaneldbUpdate.java
注:本文中的com.openbravo.data.loader.BatchSentence类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论