Package ch.epfl.labos.iu.orm

Examples of ch.epfl.labos.iu.orm.QueryComposer


   public <U, V> QueryComposer<Pair<U, V>> group(Select<T, U> select,
                                                 AggregateGroup<U, T, V> aggregate)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache("group", select, aggregate);
         if (cached != null) return cached;
         SQLQuery<Pair<U,V>> newQuery = transformer.group(query.copy(), nextLambdaParamIndex, select, nextLambdaParamIndex + 1, aggregate, emSource);
         List<ParameterLocation> paramLocSelect = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here


   public <U> QueryComposer<Pair<T, U>> join(Join<T,U> join)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache("join", join, null);
         if (cached != null) return cached;
         SQLQuery<Pair<T,U>> newQuery = transformer.join(query.copy(), nextLambdaParamIndex, join, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   public <U> QueryComposer<U> select(Select<T, U> select)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache("select", select, null);
         if (cached != null) return cached;
         SQLQuery<U> newQuery = transformer.select(query.copy(), nextLambdaParamIndex, select, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   public QueryComposer<T> where(Where<T> test)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache("where", test, null);
         if (cached != null) return cached;
         SQLQuery<T> newQuery = transformer.where(query.copy(), nextLambdaParamIndex, test, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   }

   public QueryComposer<T> firstN(int n)
   {
      if (transformer == null) return null;
      QueryComposer cached = lookupQueryCache("firstN", null, null);
      if (cached != null) return cached;
      SQLQuery<T> newQuery = transformer.firstN(query.copy(), n, emSource);
      if (newQuery != null)
      {
         storeInQueryCache("firstN", newQuery, null, null, null, null);
View Full Code Here

   public QueryComposer<T> sortedByDate(DateSorter<T> sorter,
                                        boolean isAscending)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache(isAscending ? "sortedByDateAscending" : "sortedByDateDescending", sorter, null);
         if (cached != null) return cached;
         SQLQuery<T> newQuery = transformer.sortedByDate(query.copy(), nextLambdaParamIndex, sorter, isAscending, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   public QueryComposer<T> sortedByDouble(DoubleSorter<T> sorter,
                                          boolean isAscending)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache(isAscending ? "sortedByDoubleAscending" : "sortedByDoubleDescending", sorter, null);
         if (cached != null) return cached;
         SQLQuery<T> newQuery = transformer.sortedByDouble(query.copy(), nextLambdaParamIndex, sorter, isAscending, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   public QueryComposer<T> sortedByInt(IntSorter<T> sorter, boolean isAscending)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache(isAscending ? "sortedByIntAscending" : "sortedByIntDescending", sorter, null);
         if (cached != null) return cached;
         SQLQuery<T> newQuery = transformer.sortedByInt(query.copy(), nextLambdaParamIndex, sorter, isAscending, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

   public QueryComposer<T> sortedByString(StringSorter<T> sorter,
                                          boolean isAscending)
   {
      try {
         if (transformer == null) return null;
         QueryComposer cached = lookupQueryCache(isAscending ? "sortedByStringAscending" : "sortedByStringDescending", sorter, null);
         if (cached != null) return cached;
         SQLQuery<T> newQuery = transformer.sortedByString(query.copy(), nextLambdaParamIndex, sorter, isAscending, emSource);
         List<ParameterLocation> paramLocs = new ArrayList<ParameterLocation>();
         if (newQuery != null)
         {
View Full Code Here

TOP

Related Classes of ch.epfl.labos.iu.orm.QueryComposer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.