• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
黄洪波写点东西的地方
博客园    首页    新随笔    联系   管理    订阅  订阅
标准附件,如果上传了没有保存.怎么检查他是否上传了附件

 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.

 

 

posted on 2016-07-06 14:48  红无酒伤  阅读(531)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3