本文整理汇总了Java中org.knowm.yank.Yank.queryBeanList方法的典型用法代码示例。如果您正苦于以下问题:Java Yank.queryBeanList方法的具体用法?Java Yank.queryBeanList怎么用?Java Yank.queryBeanList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.knowm.yank.Yank
的用法示例。
在下文中一共展示了Yank.queryBeanList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doGetItemTables
import org.knowm.yank.Yank; //导入方法依赖的package包/类
public List<ItemsVO> doGetItemTables(ItemsVO vo) {
String sql = StringUtilsExt.replaceArrayMerge(SQL_GET_ITEM_TABLES,
new String[] { "#jdbcUriDatabaseName#", "#itemsManageTable#" },
new String[] { vo.getJdbcUriDatabaseName(), vo.getItemsManageTable() });
logger.debug("JDBC::doGetItemTables sql={}", sql);
return Yank.queryBeanList(sql, ItemsVO.class, null);
}
示例2: doGetItemTables
import org.knowm.yank.Yank; //导入方法依赖的package包/类
@Override
public List<ItemsVO> doGetItemTables(ItemsVO vo) {
String sql = StringUtilsExt.replaceArrayMerge(SQL_GET_ITEM_TABLES, new String[] { "#itemsManageTable#" },
new String[] { vo.getItemsManageTable() });
logger.debug("JDBC::doGetItemTables sql={}", sql);
return Yank.queryBeanList(sql, ItemsVO.class, null);
}
示例3: getReminder
import org.knowm.yank.Yank; //导入方法依赖的package包/类
public DbReminder[] getReminder(DbGuildUser target){
if(Karren.conf.getAllowSQLRW()){
List<DbReminder> reminders = dbReminderCache.stream().filter(x -> x.getTargetID()==(target.getGuildUserID())).collect(Collectors.toList());
if(reminders.size()>0) {
DbReminder[] remindArray = new DbReminder[reminders.size()];
return reminders.toArray(remindArray);
}
String sql = "SELECT * FROM Reminder WHERE TargetID=? AND ReminderSent=0";
Object[] params = {target.getGuildUserID()};
reminders = Yank.queryBeanList(sql, DbReminder.class, params);
dbReminderCache.addAll(reminders);
return reminders.toArray(new DbReminder[reminders.size()]);
}
return null;
}
示例4: doGetItemIDTableNames
import org.knowm.yank.Yank; //导入方法依赖的package包/类
public List<ItemsVO> doGetItemIDTableNames(ItemsVO vo) {
String sql = StringUtilsExt.replaceArrayMerge(SQL_GET_ITEMID_TABLE_NAMES, new String[] { "#itemsManageTable#" },
new String[] { vo.getItemsManageTable() });
logger.debug("JDBC::doGetItemIDTableNames sql={}", sql);
return Yank.queryBeanList(sql, ItemsVO.class, null);
}