Package com.share.core.pojos.system

Examples of com.share.core.pojos.system.Test


   * @version 1.0.0
   *
   */
  @Override
  public Test get(int id) {
    Test o = (Test) dao.getJdbcTemplate().queryForObject(SQL_GET, new Object[] { id }, new TestMapper());
    return o;
  }
View Full Code Here


    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    try {
      Test test2 = (Test) jsonToBean(jsonStr, Test.class);

      logger.debug("test2:" + test2);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

  protected class TestMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
      Test o = new Test();
      o.setId(rs.getInt("id"));
      o.setUsername(rs.getString("username"));
      o.setPassword(rs.getString("password"));
      o.setCreatedate(rs.getTimestamp("createdate"));

      return o;
    }
View Full Code Here

TOP

Related Classes of com.share.core.pojos.system.Test

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.