Package com.firefly.demo1.service.impl

Examples of com.firefly.demo1.service.impl.UserServiceImpl


      connection = dataSource.getConnection();
      preparedStatement = connection
          .prepareStatement("select id, name, password from cms_user");
      resultSet = preparedStatement.executeQuery();
      while (resultSet.next()) {
        User user = new User();
        user.setId(resultSet.getString("id"));
        user.setName(resultSet.getString("name"));
        user.setPassword(resultSet.getString("password"));
        ret.add(user);
      }
      connection.commit();

    } catch (SQLException e) {
View Full Code Here

TOP

Related Classes of com.firefly.demo1.service.impl.UserServiceImpl

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.