• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java RowProcessor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.commons.dbutils.RowProcessor的典型用法代码示例。如果您正苦于以下问题:Java RowProcessor类的具体用法?Java RowProcessor怎么用?Java RowProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RowProcessor类属于org.apache.commons.dbutils包,在下文中一共展示了RowProcessor类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getRowProcessor

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
public static synchronized RowProcessor getRowProcessor(Class<?> modelCls, ModelMeta modelMeta) {
    if(ROW_PROCESSOR_MAP.containsKey(modelCls)) {
        return ROW_PROCESSOR_MAP.get(modelCls);
    }
    RowProcessor rowProcessor = new BasicRowProcessor(new JdbcOrmBeanProcessor(modelCls, modelMeta));
    ROW_PROCESSOR_MAP.put(modelCls, rowProcessor);
    return rowProcessor;
}
 
开发者ID:zoowii,项目名称:jpa-utils,代码行数:9,代码来源:JdbcOrmBeanHandler.java


示例2: netProcessor

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
public static RowProcessor netProcessor(Object... netConfig) {
	getCurrentExplainers().add(new EntityNetSqlExplainer(netConfig));
	return new BasicRowProcessor();
}
 
开发者ID:drinkjava2,项目名称:jSqlBox,代码行数:5,代码来源:SqlBoxContext.java


示例3: JdbcOrmBeanListHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
public JdbcOrmBeanListHandler(Class<T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:zoowii,项目名称:jpa-utils,代码行数:5,代码来源:JdbcOrmBeanListHandler.java


示例4: JdbcOrmBeanHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
public JdbcOrmBeanHandler(Class<T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:zoowii,项目名称:jpa-utils,代码行数:5,代码来源:JdbcOrmBeanHandler.java


示例5: BeanMapHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Private Helper
 *
 * @param convert
 *            The <code>RowProcessor</code> implementation to use when
 *            converting rows into Beans
 * @param columnIndex
 *            The values to use as keys in the Map are retrieved from the
 *            column at this index.
 * @param columnName
 *            The values to use as keys in the Map are retrieved from the
 *            column with this name.
 */
private BeanMapHandler(Class<V> type, RowProcessor convert,
        int columnIndex, String columnName) {
    super();
    this.type = type;
    this.convert = convert;
    this.columnIndex = columnIndex;
    this.columnName = columnName;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:22,代码来源:BeanMapHandler.java


示例6: KeyedHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/** Private Helper
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into Maps
 * @param columnIndex The values to use as keys in the Map are
 * retrieved from the column at this index.
 * @param columnName The values to use as keys in the Map are
 * retrieved from the column with this name.
 */
private KeyedHandler(RowProcessor convert, int columnIndex,
        String columnName) {
    super();
    this.convert = convert;
    this.columnIndex = columnIndex;
    this.columnName = columnName;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:16,代码来源:KeyedHandler.java


示例7: getList

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
     * For classes w/ nested objects such as AuditInfo
     *
     * @param clazz
     * @param sql
     * @param values
     * @param convert
     * @return
     * @throws ServletException
     * @throws SQLException
     */
    public static List getList(Class clazz, String sql, ArrayList values, RowProcessor convert) throws ServletException, SQLException {
        DataSource dataSource = null;
        dataSource = DatabaseUtils.getZEPRSDataSource();
        QueryRunner run = new QueryRunner(dataSource);
        ResultSetHandler h = new BeanListHandler(clazz, convert);
// return the results in a new object generated by the BeanHandler.
        List list = (List) run.query(sql, values.toArray(), h);
        return list;

    }
 
开发者ID:chrisekelley,项目名称:zeprs,代码行数:22,代码来源:DatabaseUtils.java


示例8: defaultRowProcessor

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * 默认的{@link RowProcessor}对象
 * {@link ResultSet}转为Bean时使用{@link MysqlBeanProcessor}
 *
 * @see MysqlBeanProcessor
 */
public static RowProcessor defaultRowProcessor() {
    return DEFAULT_ROW_PROCESSOR;
}
 
开发者ID:wxingyl,项目名称:search-commons,代码行数:10,代码来源:Queries.java


示例9: ResultSetIterator

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Constructor for ResultSetIterator.
 * @param rs Wrap this <code>ResultSet</code> in an <code>Iterator</code>.
 * @param convert The processor to use when converting a row into an 
 * <code>Object[]</code>.  Defaults to a 
 * <code>BasicRowProcessor</code>.
 */
public ResultSetIterator(ResultSet rs, RowProcessor convert) {
    this.rs = rs;
    this.convert = convert;
}
 
开发者ID:NCAR,项目名称:dls-repository-stack,代码行数:12,代码来源:ResultSetIterator.java


示例10: BeanListHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of BeanListHandler.
 *
 * @param type The Class that objects returned from <code>handle()</code>
 * are created from.
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into beans.
 */
public BeanListHandler(Class<T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:13,代码来源:BeanListHandler.java


示例11: MapHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of MapHandler.
 *
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into Maps.
 */
public MapHandler(RowProcessor convert) {
    super();
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:11,代码来源:MapHandler.java


示例12: BeanHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of BeanHandler.
 *
 * @param type The Class that objects returned from <code>handle()</code>
 * are created from.
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into beans.
 */
public BeanHandler(Class<T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:13,代码来源:BeanHandler.java


示例13: ArrayHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of ArrayHandler.
 *
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into arrays.
 */
public ArrayHandler(RowProcessor convert) {
    super();
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:11,代码来源:ArrayHandler.java


示例14: MapListHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of MapListHandler.
 *
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into Maps.
 */
public MapListHandler(RowProcessor convert) {
    super();
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:11,代码来源:MapListHandler.java


示例15: ArrayListHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of ArrayListHandler.
 *
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into Object[]s.
 */
public ArrayListHandler(RowProcessor convert) {
    super();
    this.convert = convert;
}
 
开发者ID:SoftDebugger,项目名称:webutil,代码行数:11,代码来源:ArrayListHandler.java


示例16: BeanListHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of BeanListHandler.
 *
 * @param type The Class that objects returned from <code>handle()</code>
 * are created from.
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into beans.
 */
public BeanListHandler(Class<? extends T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:apache,项目名称:commons-dbutils,代码行数:13,代码来源:BeanListHandler.java


示例17: BeanHandler

import org.apache.commons.dbutils.RowProcessor; //导入依赖的package包/类
/**
 * Creates a new instance of BeanHandler.
 *
 * @param type The Class that objects returned from <code>handle()</code>
 * are created from.
 * @param convert The <code>RowProcessor</code> implementation
 * to use when converting rows into beans.
 */
public BeanHandler(Class<? extends T> type, RowProcessor convert) {
    this.type = type;
    this.convert = convert;
}
 
开发者ID:apache,项目名称:commons-dbutils,代码行数:13,代码来源:BeanHandler.java



注:本文中的org.apache.commons.dbutils.RowProcessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Dimensionless类代码示例发布时间:2022-05-22
下一篇:
Java DefaultSubjectDAO类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap