}
public void load(ISession session, PreparedStatement stmt) {
// always wrap on word boundaries
textArea.setWrapStyleWord(true);
ConstraintSourceBuilder csb = new ConstraintSourceBuilder(session);
ResultSet rs = null;
try {
rs = stmt.executeQuery();
if (rs.next()) {
ConstraintInfo ci = new ConstraintInfo(
rs.getString(1),
rs.getString(2),
ConstraintInfo.ConstraintType
.valueOf(rs.getString(3)),
rs.getString(4),
rs.getString(5),
rs.getString(6),
rs.getString(7),
rs.getString(8),
rs.getString(9));
csb.buildConstraintSource(ci);
if (csb.getConstraintSource() != null) {
textArea.setText(csb.getConstraintSource());
} else {
textArea.setText("Source NOT available");
}
}
} catch (Exception ex) {