public IMultiQuery Add <T>(string key, string hql) { AddEntry(new QueryEntry(key, ShardedQueryImpl.CreateQuery(this.session, hql), () => new List <T>())); return(this); }
public IMultiQuery Add(string hql) { AddEntry(new QueryEntry(ShardedQueryImpl.CreateQuery(this.session, hql), () => new ArrayList())); return(this); }
public IMultiQuery AddNamedQuery(string queryName) { AddEntry(new QueryEntry(ShardedQueryImpl.GetNamedQuery(this.session, queryName), () => new ArrayList())); return(this); }
public IMultiQuery AddNamedQuery <T>(string key, string queryName) { AddEntry(new QueryEntry(key, ShardedQueryImpl.GetNamedQuery(this.session, queryName), () => new List <T>())); return(this); }
public FutureValueShardOperation(ShardedQueryImpl shardedQuery) { this.shardedQuery = shardedQuery; this.futuresByShard = shardedQuery.session.Shards .ToDictionary(s => s, s => shardedQuery.EstablishFor(s).FutureValue <T>()); }