回调 函数 class DefaultUploadFileCallBack implements UploadFileCallBack { /** * @param vodInfo */ public void doUploadFailed(VODContentInfo vodInfo) { vodInfo.setCaStatus(CISDTMappings.CASTATUS_UPLOADFAILURE); dbOperUpdate(vodInfo); } /** * @param vodInfo */ public void doUploadSucceed(VODContentInfo vodInfo) { vodInfo.setCaStatus(CISDTMappings.CASTATUS_UPLOADED); dbOperUpdate(vodInfo); } /** * @param vodInfo */ public void doWhenUploading(VODContentInfo vodInfo) { vodInfo.setCaStatus(CISDTMappings.CASTATUS_UPLOADING); dbOperUpdate(vodInfo); } private void dbOperUpdate(VODContentInfo vodInfo) { DBOperator dbOper = null; try { dbOper = new DBOperator(); dbOper.updateInfo(vodInfo); } catch (Exception e) { CISSysLogger.error(IPTVConstants.AREA_ALL, "Catch exception, Message:" + e.toString()); } finally { DAOUtils.closeDBOperator(dbOper); } } } }