标准附件,如果上传了没有保存.怎么检查他是否上传了附件
2016-07-06 14:48
309 查看
String[]sPkValues=newString[]{pk1_value,pk2_value,pk3_value,pk4_value,pk5_value};
//验证缓存和DB publicbooleanattachmentExistsInCache(OAApplicationModuleam,StringEntityName,
StringPklValue){
String[]sPkValue=newString[]{PklValue};
returnOAAttachmentServerUtils.attachmentExistsInCacheOrDb(am,EntityName,sPkValue);
}
//仅验证DB
publicbooleanattachmentExistsInCache(OAApplicationModuleam,StringEntityName,
StringPklValue){
String[]sPkValue=newString[]{PklValue};
returnOAAttachmentServerUtils.attachmentExists(am,EntityName,sPkValue);
}
//vo.setAssociationConsistent(true)方法应该是会去查询缓存中的数据
if(associationConsistent){
vo.setAssociationConsistent(associationConsistent);
}
setAssociationConsistent
publicvoidsetAssociationConsistent(booleanconsistent)
Setstheassociation-consistentflagforthisRowSet.
Association-consistentmodeallowstheusertoseedatathatincludeschangesnotyetpostedtodatabase,butatthecostofdegradedperformance.
Whenassociation-consistencyisontheRowSetwillreflectrowswithmodifiedforeignkeys,newlycreatedrows,andremoved(deleted)rows.Whenassociation-consistencyisofftheusermustpostpendingchangestodatabasetomakethemvisible.
ThismethodisrelevantonlyifthisRowSetwasonereturnedfromacalltoanentityassociationaccessor.
相关文章推荐
- 导入自己的jar包到maven依赖库中
- 面试编程题---其中隐藏着若干0,其余非0整数,使A把0移至后面,非0整数移至数组前面并保持有序
- Centos7 最小化安装出现无法使用网络的问题
- Android中Preference监听事件
- u-boot的nand驱动写过程分析
- poj2393
- ScrollView滚动到底部3种方案(巧解现实产品一个需求)
- linux/windows 读写ini配置文件
- 7-6随便写写
- JAVA使用迭代器遍历JSON和MAP
- jQuery给一个元素绑定事件前,一次点击会多次触发的问题所在
- ionicView 生命周期事件不调用处理方法 $ ionicView.loaded $ ionicView.enter
- Java反射学习
- 解题报告:HDU_1277 全文检索 字典树
- 【Android】ORM数据库框架之GreenDao快速入门与使用
- 通过微信公众号ID生成公众号的二维码
- raw flash vs FTL
- Form表单验证神器: BootstrapValidator
- mysql 变更数据库路径(linux)
- browser js