* @throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
*/
public void savePart(int uploadId, int partNumber, String md5, String storedPath, int size) {
try {
MultiPartPartsVO partVO = null;
partVO = mpartPartsDao.findByUploadID(uploadId, partNumber);
// -> are we doing an update or an insert? (are we over writting an
// existing entry?)
if (null == partVO) {
MultiPartPartsVO part = new MultiPartPartsVO(uploadId, partNumber, md5, storedPath, size, new Date());
mpartPartsDao.persist(part);
} else {
partVO.setMd5(md5);
partVO.setStoredSize(new Long(size));
partVO.setCreateTime(new Date());