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.

 

 

相关文章:

  • 2021-09-17
  • 2021-08-24
  • 2022-03-01
  • 2021-11-26
  • 2021-10-13
  • 2021-12-25
  • 2021-12-24
猜你喜欢
  • 2021-12-08
  • 2022-01-19
  • 2021-04-18
  • 2022-12-23
相关资源
相似解决方案