Beispiel #1
0
 protected internal virtual Net.Vpc.Upa.Impl.Persistence.QueryExecutor CreateNativeSQL(Net.Vpc.Upa.Filters.FieldFilter fieldFilter)
 {
     //        applyParameters();
     lastQueryExecutor = store.CreateExecutor(query, parametersByName, parametersByIndex, IsUpdatable(), fieldFilter, context.SetHints(GetHints()));
     Net.Vpc.Upa.Expressions.EntityStatement statement = lastQueryExecutor.GetMetaData().GetStatement();
     return(lastQueryExecutor);
 }
Beispiel #2
0
 public DefaultQuery(Net.Vpc.Upa.Expressions.EntityStatement query, Net.Vpc.Upa.Entity defaultEntity, Net.Vpc.Upa.Persistence.EntityExecutionContext context)
 {
     this.query = query;
     if (defaultEntity != null)
     {
         if (query is Net.Vpc.Upa.Expressions.Select)
         {
             Net.Vpc.Upa.Expressions.Select select = (Net.Vpc.Upa.Expressions.Select)query;
             if (select.GetEntity() == null)
             {
                 select.From(defaultEntity.GetName());
             }
         }
         else if (query is Net.Vpc.Upa.Expressions.Insert)
         {
             if (((Net.Vpc.Upa.Expressions.Insert)query).GetEntity() == null)
             {
                 ((Net.Vpc.Upa.Expressions.Insert)query).Into(defaultEntity.GetName());
             }
         }
         else if (query is Net.Vpc.Upa.Expressions.Update)
         {
             if (((Net.Vpc.Upa.Expressions.Update)query).GetEntity() == null)
             {
                 ((Net.Vpc.Upa.Expressions.Update)query).Entity(defaultEntity.GetName());
             }
         }
         else if (query is Net.Vpc.Upa.Expressions.Delete)
         {
             if (((Net.Vpc.Upa.Expressions.Delete)query).GetEntity() == null)
             {
                 ((Net.Vpc.Upa.Expressions.Delete)query).From(defaultEntity.GetName());
             }
         }
     }
     this.context = context;
     //        this.cquery = (CompiledEntityStatement) query.copy();
     //        this.defaultEntity = defaultEntity;
     store = (Net.Vpc.Upa.Impl.Persistence.DefaultPersistenceStore)context.GetPersistenceStore();
 }
Beispiel #3
0
 public virtual void SetStatement(Net.Vpc.Upa.Expressions.EntityStatement statement)
 {
     this.statement = statement;
 }