Tabnine Logo
NonreflectiveMethodDefinition.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
org.eclipse.persistence.internal.codegen.NonreflectiveMethodDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.NonreflectiveMethodDefinition.setName (Showing top 18 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");");
  methodDefinition.addLine("");
  for (Enumeration tablesEnum = getTableCreator().getTableDefinitions().elements();
       tablesEnum.hasMoreElements();) {
    TableDefinition table = (TableDefinition)tablesEnum.nextElement();
    methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());");
  }
  return methodDefinition;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected NonreflectiveMethodDefinition buildTableMethod(TableDefinition table) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("build" + table.getName() + "Table");
  method.setReturnType("TableDefinition");
  // Table
  method.addLine("TableDefinition table = new TableDefinition();");
  method.addLine("table.setName(\"" + table.getName() + "\");");
  // Fields
  for (Enumeration fieldsEnum = table.getFields().elements(); fieldsEnum.hasMoreElements();) {
    method.addLine("");
    FieldDefinition field = (FieldDefinition)fieldsEnum.nextElement();
    addFieldLines(field, method);
  }
  // Constraints
  for (Enumeration constraintsEnum = table.getForeignKeys().elements();
       constraintsEnum.hasMoreElements();) {
    method.addLine("");
    ForeignKeyConstraint foreignKey = (ForeignKeyConstraint)constraintsEnum.nextElement();
    addForeignKeyLines(foreignKey, method);
  }
  method.addLine("");
  method.addLine("return table;");
  return method;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getProject().getName() + "\");");
  methodDefinition.addLine("applyLogin();");
  if (!getProject().getDefaultReadOnlyClasses().isEmpty()) {
    methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());");
  }
  methodDefinition.addLine("");
  // Sort by name.
  Vector descriptors = buildSortedVectorOfDescriptors(getProject().getOrderedDescriptors());
  for (Enumeration descriptorsEnum = descriptors.elements();
       descriptorsEnum.hasMoreElements();) {
    ClassDescriptor descriptor = (ClassDescriptor)descriptorsEnum.nextElement();
    // Singleton interface descriptors should not exist.
    if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) {
      methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());");
    }
  }
  return methodDefinition;
}
origin: com.haulmont.thirdparty/eclipselink

method.setName("build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor");
method.setReturnType("ClassDescriptor");
origin: org.eclipse.persistence/org.eclipse.persistence.core

method.setName("build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor");
method.setReturnType("ClassDescriptor");
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

method.setName("build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor");
method.setReturnType("ClassDescriptor");
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");");
  methodDefinition.addLine("");
  for (TableDefinition table : getTableCreator().getTableDefinitions()) {
    methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());");
  }
  return methodDefinition;
}
origin: com.haulmont.thirdparty/eclipselink

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getTableCreator().getName() + "\");");
  methodDefinition.addLine("");
  for (TableDefinition table : getTableCreator().getTableDefinitions()) {
    methodDefinition.addLine("addTableDefinition(build" + table.getName() + "Table());");
  }
  return methodDefinition;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getProject().getName() + "\");");
  methodDefinition.addLine("applyLogin();");
  if (!getProject().getDefaultReadOnlyClasses().isEmpty()) {
    methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());");
  }
  methodDefinition.addLine("");
  // Sort by name.
  List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors());
  for (ClassDescriptor descriptor : descriptors) {
    // Singleton interface descriptors should not exist.
    if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) {
      methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());");
    }
  }
  return methodDefinition;
}
origin: com.haulmont.thirdparty/eclipselink

protected NonreflectiveMethodDefinition buildConstructor() {
  NonreflectiveMethodDefinition methodDefinition = new NonreflectiveMethodDefinition();
  methodDefinition.setName(getClassName());
  methodDefinition.setIsConstructor(true);
  methodDefinition.addLine("setName(\"" + getProject().getName() + "\");");
  methodDefinition.addLine("applyLogin();");
  if (!getProject().getDefaultReadOnlyClasses().isEmpty()) {
    methodDefinition.addLine("setDefaultReadOnlyClasses(buildDefaultReadOnlyClasses());");
  }
  methodDefinition.addLine("");
  // Sort by name.
  List<ClassDescriptor> descriptors = buildSortedListOfDescriptors(getProject().getOrderedDescriptors());
  for (ClassDescriptor descriptor : descriptors) {
    // Singleton interface descriptors should not exist.
    if (!(descriptor.isDescriptorForInterface() && (descriptor.getInterfacePolicy().getImplementorDescriptor() != null))) {
      methodDefinition.addLine("addDescriptor(build" + getDescriptorMethodNames().get(descriptor) + "ClassDescriptor());");
    }
  }
  return methodDefinition;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected NonreflectiveMethodDefinition buildTableMethod(TableDefinition table) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("build" + table.getName() + "Table");
  method.setReturnType("TableDefinition");
  // Table
  method.addLine("TableDefinition table = new TableDefinition();");
  method.addLine("table.setName(\"" + table.getName() + "\");");
  // Fields
  for (FieldDefinition field : table.getFields()) {
    method.addLine("");
    addFieldLines(field, method);
  }
  // Constraints
  for (ForeignKeyConstraint foreignKey : table.getForeignKeys()) {
    method.addLine("");
    addForeignKeyLines(foreignKey, method);
  }
  method.addLine("");
  method.addLine("return table;");
  return method;
}
origin: com.haulmont.thirdparty/eclipselink

protected NonreflectiveMethodDefinition buildTableMethod(TableDefinition table) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("build" + table.getName() + "Table");
  method.setReturnType("TableDefinition");
  // Table
  method.addLine("TableDefinition table = new TableDefinition();");
  method.addLine("table.setName(\"" + table.getName() + "\");");
  // Fields
  for (FieldDefinition field : table.getFields()) {
    method.addLine("");
    addFieldLines(field, method);
  }
  // Constraints
  for (ForeignKeyConstraint foreignKey : table.getForeignKeys()) {
    method.addLine("");
    addForeignKeyLines(foreignKey, method);
  }
  method.addLine("");
  method.addLine("return table;");
  return method;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected NonreflectiveMethodDefinition buildLoginMethod(Login datasourceLogin) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
origin: com.haulmont.thirdparty/eclipselink

protected NonreflectiveMethodDefinition buildLoginMethod(Login datasourceLogin) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected NonreflectiveMethodDefinition buildLoginMethod(Login datasourceLogin) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected NonreflectiveMethodDefinition buildLoginMethod(DatabaseLogin login) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
origin: com.haulmont.thirdparty/eclipselink

protected NonreflectiveMethodDefinition buildLoginMethod(DatabaseLogin login) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected NonreflectiveMethodDefinition buildLoginMethod(DatabaseLogin login) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
  method.setName("applyLogin");
org.eclipse.persistence.internal.codegenNonreflectiveMethodDefinitionsetName

Popular methods of NonreflectiveMethodDefinition

  • <init>
  • addLine
  • adjustArgumentTypeNames
  • adjustTypeName
  • getArgumentNames
  • getArgumentTypeNames
  • getArgumentTypes
  • replaceArgumentTypeName
  • setIsConstructor
  • setReturnType

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BoxLayout (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now