Package com.cosmo.orm.annotations

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


               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldInteger.class)
            {
               FormFieldInteger fld = new FormFieldInteger(cfg.dbTableColumn(), cfg.label());
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldNumber.class)
            {
View Full Code Here


               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldNumber.class)
            {
               FormFieldNumber fld = new FormFieldNumber(cfg.dbTableColumn(), cfg.label());
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldList.class)
            {
View Full Code Here

               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldList.class)
            {
               FormFieldList fld = new FormFieldList(cfg.dbTableColumn(), cfg.label());
               fld.setList(getWorkspace().getProperties().getDataProperties().getDataList(cfg.list()));
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldBoolean.class)
View Full Code Here

               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldBoolean.class)
            {
               FormFieldBoolean fld = new FormFieldBoolean(cfg.dbTableColumn(), cfg.label());
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldDate.class)
            {
View Full Code Here

               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldDate.class)
            {
               FormFieldDate fld = new FormFieldDate(cfg.dbTableColumn(), cfg.label());
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldCaptcha.class)
            {
View Full Code Here

               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
            else if (cfg.fieldClass() == FormFieldCaptcha.class)
            {
               FormFieldCaptcha fld = new FormFieldCaptcha(cfg.dbTableColumn(), cfg.label());
               fld.setValue(method.invoke(data));
               group.addField(fld);
            }
         }
      }
View Full Code Here

            cfg = method.getAnnotation(CormObjectField.class);

            if (showAllColumns || (!showAllColumns && cfg.showInObjectListGrid()))
            {
               cfg = method.getAnnotation(CormObjectField.class);
               this.gridData.setColumnField(idx, cfg.dbTableColumn());
               this.gridData.setColumnPrimaryKey(idx, cfg.isPrimaryKey());
               idx++;
            }
         }
      }
View Full Code Here

         if (cf != null)
         {
            if ((showAllColumns) || (!showAllColumns && cf.showInObjectListGrid()))
            {
               sql.append((first ? "" : ", "));
               sql.append(cf.dbTableColumn() + " As \"" + cf.label() + "\"");
               first = false;
            }
         }
      }
      sql.append(" ");
View Full Code Here

            if (cf != null)
            {
               if (cf.sort() == FieldSortType.Ascending)
               {
                  sql.append((first ? "" : ", "));
                  sql.append(cf.dbTableColumn() + " ");
                  sql.append(SQL_ORDERBY_ASC);

                  first = false;
               }
               else if (cf.sort() == FieldSortType.Descending)
View Full Code Here

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

                  first = false;
               }
            }
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.