标准附件,如果上传了没有保存.怎么检查他是否上传了附件



 String[] sPkValues = new String[]{pk1_value, pk2_value, pk3_value, pk4_value, pk5_value};

//验证缓存和DB
public boolean attachmentExistsInCache(OAApplicationModule am, String EntityName,

String PklValue){

String[] sPkValue= new String[]{PklValue };
return OAAttachmentServerUtils.attachmentExistsInCacheOrDb(am, EntityName, sPkValue);

}

//仅验证DB

public boolean attachmentExistsInCache(OAApplicationModule am, String EntityName,
String PklValue){

String[] sPkValue= new String[]{PklValue };
return OAAttachmentServerUtils.attachmentExists(am, EntityName, sPkValue);

}

//vo.setAssociationConsistent(true)方法应该是会去查询缓存中的数据

if(associationConsistent){
vo.setAssociationConsistent(associationConsistent);

}

setAssociationConsistent

public void setAssociationConsistent(boolean consistent)
Sets the association-consistent flag for this Row Set.

Association-consistent mode allows the user to see data that includes changes not yet posted to database, but at the cost of degraded performance.

When association-consistency is on the Row Set will reflect rows with modified foreign keys, newly created rows, and removed (deleted) rows. When association-consistency is off the user must post pending changes to database to make them visible.

This method is relevant only if this Row Set was one returned from a call to an entity association accessor.

优质内容筛选与推荐>>
1、IIS6.0中布署MVC站点
2、CPU知识
3、我所了解的各公司使用的 Ceph 存储集群 (携程、乐视、有云、宝德云、联通等)
4、hdu 1281 棋盘游戏 网络流
5、.NET开发者常犯的几个错误


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号