try (Connection conn = dbConnect();
PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM DOMAINS WHERE name = ?")) {
pstmt.setString(1, domainName);
- LOG.debug("query string: {}", pstmt.toString());
+ LOG.debug("query string: {}", pstmt);
domains.setDomains(listFromStatement(pstmt));
} catch (SQLException e) {
LOG.error("Error listing domains matching {}", domainName, e);
try (Connection conn = dbConnect();
PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM DOMAINS WHERE domainid = ? ")) {
pstmt.setString(1, id);
- LOG.debug("query string: {}", pstmt.toString());
+ LOG.debug("query string: {}", pstmt);
return firstFromStatement(pstmt);
} catch (SQLException e) {
LOG.error("Error retrieving domain {}", id, e);
try (Connection conn = dbConnect();
PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM ROLES WHERE roleid = ? ")) {
pstmt.setString(1, id);
- LOG.debug("query string: {}", pstmt.toString());
+ LOG.debug("query string: {}", pstmt);
return firstFromStatement(pstmt);
} catch (SQLException s) {
throw new StoreException("SQL Exception: " + s);
try (Connection conn = dbConnect();
PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM USERS WHERE userid = ? ")) {
pstmt.setString(1, IDMStoreUtil.createUserid(username, domain));
- LOG.debug("query string: {}", pstmt.toString());
+ LOG.debug("query string: {}", pstmt);
users.setUsers(listFromStatement(pstmt));
} catch (SQLException s) {
throw new StoreException("SQL Exception : " + s);
try (Connection conn = dbConnect();
PreparedStatement pstmt = conn.prepareStatement("SELECT * FROM USERS WHERE userid = ? ")) {
pstmt.setString(1, id);
- LOG.debug("query string: {}", pstmt.toString());
+ LOG.debug("query string: {}", pstmt);
return firstFromStatement(pstmt);
} catch (SQLException s) {
throw new StoreException("SQL Exception : " + s);