fileDAO.updateDataLength(getFile(), length);
}
protected synchronized int getFileSegmentsCount() {
FileSegmentDAO fileSegmentDAO = new FileSegmentDAO();
return fileSegmentDAO.countByFile(getFile());
}
protected synchronized FileSegment getFileSegment(int index) {
FileSegmentDAO fileSegmentDAO = new FileSegmentDAO();
return fileSegmentDAO.findByFileAndSegmentNo(getFile(), index);