public Client getByUsersId(int usersId) {
        Client client = new Client();
        try {
            PreparedStatement statement = getConnection().prepareStatement(usersIdQuery);
            statement.setInt(1, usersId);
            ResultSet result = statement.executeQuery();
            if (result.next()) {
                fillObject(client, result);
            } else {
                return null;
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Ошибка при создании запроса");
        }
        return client;
    }