(String key)
| 158 | } |
| 159 | |
| 160 | public static String getSQL(String key) { |
| 161 | String str = sqlProperties.getProperty(key); |
| 162 | if (str != null) { |
| 163 | // trailing spaces can cause havoc ;) |
| 164 | str = str.trim(); |
| 165 | } |
| 166 | return str; |
| 167 | } |
| 168 | |
| 169 | public static String getSQL(String key, Object... params) { |
| 170 | String str = MessageFormat.format(getSQL(key), params); |
no test coverage detected