private String translate(String columnName) {
return columnName.replace("-", "_");
}
public AbstractRecordDetails(BackendContext context, final String prepareSQL, final int id) throws Exception {
new JdbcCommand(context.getConnection()) {
@Override
protected void execute(Connection connection) throws SQLException {
PreparedStatement pstmt = connection.prepareStatement(prepareSQL);
pstmt.setInt(1, id);
setResultSet(pstmt.executeQuery());