Esempio n. 1
0
 /** @throws DataException */
 public void close() throws DataException {
   // when in save status, close might be done automatically
   if (loadUtil != null) {
     loadUtil.close();
     loadUtil = null;
   }
 }
Esempio n. 2
0
  /**
   * @return cached object
   * @throws DataException
   */
  private IResultObject loadObject() throws DataException {
    if (rsMeta == null) {
      getResultClass();
    }
    if (loadUtil == null) {
      loadUtil = CacheUtilFactory.createLoadUtil(getCacheObject(), this.session);
    }

    IResultObject cacheObject = loadUtil == null ? null : loadUtil.loadObject();

    if (cacheObject == null) {
      return cacheObject;
    }

    if (addedTempComputedColumn != null && addedTempComputedColumn.size() > 0) {
      ResultObject resultObject = new ResultObject(getResultClass(), getAllObjects(cacheObject));

      return resultObject;
    } else {
      return cacheObject;
    }
  }
Esempio n. 3
0
  /**
   * @return IResultClass
   * @throws DataException
   */
  private IResultClass loadResultClass() throws DataException {
    if (loadUtil == null)
      loadUtil = CacheUtilFactory.createLoadUtil(getCacheObject(), this.session);

    return loadUtil.loadResultClass();
  }