Package pl.lodz.p.cm.ctp.dao.model

Examples of pl.lodz.p.cm.ctp.dao.model.User


 
  private User find(String sql, Object... values) throws DAOException {
        Connection connection = null;
        PreparedStatement preparedStatement = null;
        ResultSet resultSet = null;
        User user = null;

        try {
            connection = daoFactory.getConnection();
            preparedStatement = prepareStatement(connection, sql, false, values);
            resultSet = preparedStatement.executeQuery();
View Full Code Here


            close(connection, preparedStatement);
        }
    }
 
  private static User mapUser(ResultSet resultSet) throws SQLException {
        return new User(
            resultSet.getLong("id"),
            resultSet.getString("userName"),
            resultSet.getObject("password") != null ? resultSet.getString("description") : null,
            resultSet.getObject("authToken") != null ? resultSet.getString("authToken") : null,
            resultSet.getInt("quota"),
View Full Code Here

TOP

Related Classes of pl.lodz.p.cm.ctp.dao.model.User

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.