Ejemplo n.º 1
0
 public override System.Collections.Generic.IList <Net.Vpc.Upa.MultiRecord> GetMultiRecordList() /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     if (!context.GetPersistenceUnit().GetPersistenceGroup().CurrentSessionExists())
     {
         if (sessionAwareInstance == null)
         {
             sessionAwareInstance = context.GetPersistenceUnit().GetPersistenceGroup().GetContext().MakeSessionAware <Net.Vpc.Upa.Impl.Persistence.DefaultQuery>(this);
         }
         return(sessionAwareInstance.GetMultiRecordList());
     }
     try {
         Net.Vpc.Upa.Impl.Persistence.QueryExecutor   queryExecutor = ExecuteQuery(Net.Vpc.Upa.Impl.Util.Filters.Fields2.READ);
         Net.Vpc.Upa.Impl.Persistence.MultiRecordList r             = new Net.Vpc.Upa.Impl.Persistence.MultiRecordList(queryExecutor, IsUpdatable());
         allResults.Add(r);
         if (!IsLazyListLoadingEnabled())
         {
             //force loading
             r.LoadAll();
         }
         return(r);
     } catch (System.Exception e) {
         throw new Net.Vpc.Upa.Exceptions.FindException(e, new Net.Vpc.Upa.Types.I18NString("FindFailed"));
     }
 }
 public MultiRecordListTrackPropertyChangeListener(Net.Vpc.Upa.Impl.Persistence.MultiRecordList multiRecords, string r, Net.Vpc.Upa.Persistence.QueryResult result)
 {
     this.multiRecords = multiRecords;
     this.r            = r;
     this.result       = result;
 }