private LinkModel parseResultSet(ResultSet rs) throws SQLException { LinkModel model = new LinkModel(); try { model.setNodeLinkId(rs.getInt("NODE_LINK_ID")); if (rs.wasNull()) model.setNodeLinkId(null); } catch (Exception e) { model.setNodeLinkId(null); } try { model.setName(rs.getString("NAME")); if (rs.wasNull()) model.setName(null); } catch (Exception e) { model.setName(null); } try { model.setDescription(rs.getString("DESCRIPTION")); if (rs.wasNull()) model.setDescription(null); } catch (Exception e) { model.setDescription(null); } try { model.setLinkType(rs.getString("LINK_TYPE")); if (rs.wasNull()) model.setLinkType(null); } catch (Exception e) { model.setLinkType(null); } try { model.setTemplateId(rs.getInt("TEMPLATE_ID")); if (rs.wasNull()) model.setTemplateId(null); } catch (Exception e) { model.setTemplateId(null); } try { model.setCurrentNodeId(rs.getInt("CURRENT_NODE_ID")); if (rs.wasNull()) model.setCurrentNodeId(null); } catch (Exception e) { model.setCurrentNodeId(null); } try { model.setNextNodeId(rs.getInt("NEXT_NODE_ID")); if (rs.wasNull()) model.setNextNodeId(null); } catch (Exception e) { model.setNextNodeId(null); } try { model.setExecutorRelation(rs.getString("EXECUTOR_RELATION")); if (rs.wasNull()) model.setExecutorRelation(null); } catch (Exception e) { model.setExecutorRelation(null); } try { model.setExecutorsMethod(rs.getString("EXECUTORS_METHOD")); if (rs.wasNull()) model.setExecutorsMethod(null); } catch (Exception e) { model.setExecutorsMethod(null); } try { model.setNumberOrPercent(rs.getString("NUMBER_OR_PERCENT")); if (rs.wasNull()) model.setNumberOrPercent(null); } catch (Exception e) { model.setNumberOrPercent(null); } try { model.setPassValue(rs.getDouble("PASS_VALUE")); if (rs.wasNull()) model.setPassValue(null); } catch (Exception e) { model.setPassValue(null); } try { model.setExpression(rs.getString("EXPRESSION")); if (rs.wasNull()) model.setExpression(null); } catch (Exception e) { model.setExpression(null); } try { model.setDefaultPath(rs.getString("DEFAULT_PATH")); if (rs.wasNull()) model.setDefaultPath(null); } catch (Exception e) { model.setDefaultPath(null); } try { model.setActionName(rs.getString("ACTION_NAME")); if (rs.wasNull()) model.setActionName(null); } catch (Exception e) { model.setActionName(null); } return model; }