/** * Adds a prepared statement to this storage for later retrieval. * * @param object * The object which will be the key of the mapping. */ public void addPreparedStatement(Object object) { String sql = sqlThreadLocalStack.getLast(); preparedStatements.put(object, new QueryInformation(sql)); if (LOG.isDebugEnabled()) { LOG.debug("Recorded prepared sql statement: " + sql); } }