Package com.cosmo.orm.annotations

Examples of com.cosmo.orm.annotations.CormObjectField.sort()


      {
         cfg = method.getAnnotation(CormObjectField.class);

         if (cfg != null)
         {
            if (cfg.sort() != FieldSortType.None)
            {
               return true;
            }
         }
      }
View Full Code Here


         for (Method method : ormClass.getMethods())
         {
            cf = method.getAnnotation(CormObjectField.class);
            if (cf != null)
            {
               if (cf.sort() == FieldSortType.Ascending)
               {
                  sql.append((first ? "" : ", "));
                  sql.append(cf.dbTableColumn() + " ");
                  sql.append(SQL_ORDERBY_ASC);
View Full Code Here

                  sql.append(cf.dbTableColumn() + " ");
                  sql.append(SQL_ORDERBY_ASC);

                  first = false;
               }
               else if (cf.sort() == FieldSortType.Descending)
               {
                  sql.append((first ? "" : ", "));
                  sql.append(cf.dbTableColumn() + " ");
                  sql.append(SQL_ORDERBY_DESC);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.