@Test @Ignore public void testSqlServerText() { String text = dao.getTextFromCoordinate(new DNCWorkCoordinate().idInSourceTable(1L).pkColumnName("ID").sourceTable("tblPatientFreetext").sourceColumn("textContent")); assertTrue(text != null); }
public String getTextFromCoordinate(DNCWorkCoordinate coordinate) { if (coordinate.isBinary()) { throw new IllegalArgumentException("Coordinate is not a text coordinate. It's a binary one."); } Object result = getObjectFromCoordinate(coordinate); return clobHelper.getStringFromExpectedClob(result); }
DNCWorkUnitDao extends BaseDao { public String getTextFromCoordinate(DNCWorkCoordinate coordinate) { if (coordinate.isBinary()) { throw new IllegalArgumentException("Coordinate is not a text coordinate. It's a binary one."); } Object result = getObjectFromCoordinate(coordinate); return clobHelper.getStringFromExpectedClob(result); } }
DNCWorkUnitDao extends BaseDao { public String getTextFromCoordinate(DNCWorkCoordinate coordinate) { if (coordinate.isBinary()) { throw new IllegalArgumentException("Coordinate is not a text coordinate. It's a binary one."); } Object result = getObjectFromCoordinate(coordinate); return clobHelper.getStringFromExpectedClob(result); }  }
DNCWorkUnitDao extends BaseDao { public String getTextFromCoordinate(DNCWorkCoordinate coordinate) { if (coordinate.isBinary()) { throw new IllegalArgumentException("Coordinate is not a text coordinate. It's a binary one."); } Object result = getObjectFromCoordinate(coordinate); return clobHelper.getStringFromExpectedClob(result); }  String getTextFromCoordinate(DNCWorkCoordinate coordinate); byte[] getByteFromCoordinate(DNCWorkCoordinate coordinate); void saveConvertedText(DNCWorkCoordinate coordinate, String processedText); }
DNCWorkUnitDao extends BaseDao { public String getTextFromCoordinate(DNCWorkCoordinate coordinate) { if (coordinate.isBinary()) { throw new IllegalArgumentException("Coordinate is not a text coordinate. It's a binary one."); } Object result = getObjectFromCoordinate(coordinate); return clobHelper.getStringFromExpectedClob(result); }  String getTextFromCoordinate(DNCWorkCoordinate coordinate); byte[] getByteFromCoordinate(DNCWorkCoordinate coordinate); void saveConvertedText(DNCWorkCoordinate coordinate, String processedText);  }