Package com.volantis.mcs.build.javadoc

Examples of com.volantis.mcs.build.javadoc.MethodInfo


    for (Iterator i = allIdentityFields.iterator (); i.hasNext ();) {
      FieldInfo field = (FieldInfo) i.next ();
      if (!GenerateUtilities.isProjectField(field)) {
        String fieldName = field.getName ();
        MethodInfo getter = identityClassInfo.getGetterMethod (fieldName,
                                                               true);

        out.println ("      + " + fieldName.toLowerCase()+"Field" + " + \" =\"");
        String value = "id." + getter.getName () + " ()";
        out.print ("      + " + getJDBCQuoteValue (field, value));
        if (i.hasNext ()) {
            out.println ();
            out.println ("      + \" and\"");
        } else {
View Full Code Here


    for (Iterator i = extraObjectFields.iterator (); i.hasNext ();) {
      FieldInfo field = (FieldInfo) i.next ();
      String fieldName = field.getName ();

      MethodInfo getter = objectClassInfo.getGetterMethod (fieldName, true);
      String value = "o." + getter.getName () + " ()";

      out.println ("      + " + fieldName.toLowerCase()+"Field" + " + \" = \"");
      out.print ("      + " + getJDBCQuoteValue (field, value));
      if (i.hasNext ()) {
        out.println (" + \" , \"");
View Full Code Here

        String fieldName = field.getName ();
        // name is already used in locking
        if ("name".equals(fieldName)) {
          continue;
        }
        MethodInfo getter =
            identityClassInfo.getGetterMethod (fieldName, true);
        if (i.hasNext()) {
          out.println("    fields.append(id." + getter.getName () + " ())"
                      + ".append('^');");
        } else {
          out.println("    fields.append(id." + getter.getName () + " ());");
        }

      }
      out.println ("    String uniqueKey = fields.toString();");
    }
View Full Code Here

      out.println ();
      out.println ("      + \" where \"");
      for (Iterator i = queryFields.iterator (); i.hasNext ();) {
        FieldInfo field = (FieldInfo) i.next ();
        String fieldName = field.getName ();
        MethodInfo getter = queryClassInfo.getGetterMethod (fieldName,
                                                            true);

        out.println ("      + " + fieldName.toLowerCase()+"Field" + " + \" = \"");
        String value = queryObjectName + "." + getter.getName () + " ()";
        out.print ("      + " + getJDBCQuoteValue (field, value));
        if (i.hasNext ()) {
          out.println ();
          out.println ("      + \" and \"");
        } else {
View Full Code Here

        out.println ("      + \" " + sqlOperation + "\"");
        String value;
        for (Iterator i = queryFields.iterator (); i.hasNext ();) {
          FieldInfo field = (FieldInfo) i.next ();
          String fieldName = field.getName ();
          MethodInfo getter = queryClassInfo.getGetterMethod(fieldName,
                                                             true);

          out.println("      +  " + fieldName.toLowerCase()+"Field" + " + \" = \" ");
          if (!GenerateUtilities.isProjectField(field)) {
              value = queryObjectName + "." + getter.getName () + " ()";
              out.print("      + " + getJDBCQuoteValue (field, value));
          } else {
              out.print("      + JDBCAccessorHelper.quoteValue(" + packageName + ")");
          }
          if (i.hasNext ()) {
View Full Code Here

    int index = 1;
    for (Iterator i = fields.iterator (); i.hasNext (); index += 1) {
      FieldInfo field = (FieldInfo) i.next ();
        if (!GenerateUtilities.isProjectField(field)) {
            String fieldName = field.getName ();
            MethodInfo setter = classInfo.getSetterMethod (fieldName, true);

            out.println (indent + objectName + "." + setter.getName () + " ("
                   + getResultSetValue (field, resultSetName, index) + ");");
        }
    }
  }
View Full Code Here

        field = (FieldInfo) qf.next ();
        fieldName = field.getName ();
        if (GenerateUtilities.isProjectField(field)) {
            out.print("project");
        } else {
            MethodInfo getter = srcClassInfo.getGetterMethod (fieldName, true);
            out.print (srcObjectName + "." + getter.getName () + " ()");
        }
      }
      if (!fieldName.equals (parameterName)) {
          throw new IllegalStateException ("Parameter " + parameterName
           + " not the same as " + fieldName);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.build.javadoc.MethodInfo

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.