Examples of addField()


Examples of org.castor.ddlgen.schemaobject.ForeignKey.addField()

       
        String[] fieldNames = fm.getSql().getName();
        for (int i = 0; i < fieldNames.length; i++) {
            for (int j = 0; j < table.getFieldCount(); j++) {
                Field field = table.getField(j);
                if (fieldNames[i].equals(field.getName())) { fk.addField(field); }
            }
        }

        ClassMapping cm = _mappingHelper.getClassMappingByName(fm.getType());
View Full Code Here

Examples of org.castor.ddlgen.schemaobject.PrimaryKey.addField()

                    field.setKeyGenerator(keyGen);

                    table.addField(field);
                   
                    if (isFieldIdentity) {
                       primarykey.addField(field);
                    }
                }
               
                // Create foreign keys.
                if (isUseReferenceType) { addOneOneForeignKey(table, fm); }
View Full Code Here

Examples of org.castor.ddlgen.schemaobject.Table.addField()

                    field.setType(typeInfo);
                    field.setIdentity(isFieldIdentity);
                    field.setRequired(fm.getRequired());
                    field.setKeyGenerator(keyGen);

                    table.addField(field);
                   
                    if (isFieldIdentity) {
                       primarykey.addField(field);
                    }
                }
View Full Code Here

Examples of org.cishell.utility.datastructure.datamodel.area.DataModelArea.addField()

  public<T> void addField(String areaName, String groupName, DataModelField<T> field)
      throws UniqueNameException {
    DataModelArea area = getArea(areaName);

    if (area != null) {
      area.addField(field);
    }

    if (StringUtilities.isNull_Empty_OrWhitespace(groupName)) {
      groupName = DEFAULT_GROUP_NAME;
    }
View Full Code Here

Examples of org.cishell.utility.datastructure.datamodel.group.DataModelGroup.addField()

    if (group == null) {
      group = createGroup(groupName);
    }

    group.addField(field);
  }
}
View Full Code Here

Examples of org.codehaus.groovy.ast.ClassNode.addField()

*/
public class PropertyTest extends TestSupport {

    public void testFields() throws Exception {
        ClassNode classNode = new ClassNode("Foo", ACC_PUBLIC, ClassHelper.OBJECT_TYPE);
        classNode.addField("x", ACC_PUBLIC, ClassHelper.OBJECT_TYPE, null);
        classNode.addField("y", ACC_PUBLIC, ClassHelper.Integer_TYPE, null);
        classNode.addField("z", ACC_PRIVATE, ClassHelper.STRING_TYPE, null);

        Class fooClass = loadClass(classNode);
        assertTrue("Loaded a new class", fooClass != null);
View Full Code Here

Examples of org.codehaus.groovy.ast.InnerClassNode.addField()

                initialValue.setAccessedVariable(param);
                initialValue.setUseReferenceDirectly(true);
                ClassNode realType = type;
                type = ClassHelper.makeReference();
                param.setType(ClassHelper.makeReference());
                FieldNode paramField = answer.addField(paramName, ACC_PRIVATE | ACC_SYNTHETIC, type, initialValue);
                paramField.setOriginType(ClassHelper.getWrapper(param.getOriginType()));
                paramField.setHolder(true);
                String methodName = Verifier.capitalize(paramName);

                // let's add a getter & setter
View Full Code Here

Examples of org.codehaus.modello.plugin.java.javasource.JClass.addField()

      JField nameSpace = new JField(new JClass("String"), "NAMESPACE");
      nameSpace.getModifiers().setFinal(true);
      nameSpace.getModifiers().setStatic(true);
      nameSpace.getModifiers().makePublic();
      nameSpace.setInitString("\""+taglibAnnotation.uri()+"\"");
      libraryClass.addField(nameSpace);

      JField instance = new JField(libraryClass, "INSTANCE");
      instance.getModifiers().setFinal(true);
      instance.getModifiers().setStatic(true);
      instance.getModifiers().makePublic();
View Full Code Here

Examples of org.cojen.classfile.RuntimeClassFile.addField()

        cf.addInterface(Serializable.class);

        // Define fields to hold usage comparator and collator.
        TypeDesc comparatorType = TypeDesc.forClass(Comparator.class);
        TypeDesc comparatorArrayType = comparatorType.toArrayType();
        cf.addField(Modifiers.PRIVATE,
                    "mCollators", comparatorArrayType).markSynthetic();
        cf.addField(Modifiers.PRIVATE,
                    "mUsingComparators", comparatorArrayType).markSynthetic();

        // Create constructor to initialize fields.
View Full Code Here

Examples of org.davinci.server.util.JSONWriter.addField()

          }
          if ("email".equals(fieldName)) {
            ReviewManager commentingManager = ReviewManager.getReviewManager();
            Reviewer reviewerUser = commentingManager.getReviewer(returnValue.toString());
            String displayName = reviewerUser.getDisplayName();
            writer.addField("displayName", null != displayName ? displayName: returnValue.toString());
          }
        } catch (Exception e) {
          returnValue = new Object();
          e.printStackTrace();
        }
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.