Package org.apache.commons.dbutils.handlers

Examples of org.apache.commons.dbutils.handlers.BeanHandler


  {
    try
    {
      return (T) _g_runner.query(getConnection(), sql,
          _IsPrimitive(beanClass) ? _g_scaleHandler
              : new BeanHandler(beanClass), params);
    }
    catch (SQLException e)
    {
      throw new DBException(e);
    }
View Full Code Here


    *
    * @return Object
    */
   public Object getObject(final String sql, final Class clazz) {
      try{
         final ResultSetHandler bean = new BeanHandler(clazz);
         return runner.query(conn, sql, null, bean);
      }catch (final SQLException e){
         if(GlobalSettings.logActive)
            new LogEngine().logMessage(e.getStackTrace().toString(), GlobalSettings.logPath, "ERROR");
         throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.apache.commons.dbutils.handlers.BeanHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.