zoukankan      html  css  js  c++  java
  • 标准附件,如果上传了没有保存.怎么检查他是否上传了附件

    
    
     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.

     
  • 相关阅读:
    浅析 MySQL Replication(转)
    mysql优化案例
    create index 与 alter table add index 区别
    /etc/sysctl.conf参数解释(转)
    Linux内核 TCP/IP参数调优
    OneProxy常用参数说明
    转载:如何在面试中写出好的代码
    F面经:painting house
    Lintcode: Merge Sorted Array II
    Lintcode: Median
  • 原文地址:https://www.cnblogs.com/huanghongbo/p/5646858.html
Copyright © 2011-2022 走看看