congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NonreflectiveMethodDefinition.setReturnType
Code IndexAdd Tabnine to your IDE (free)

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

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

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: com.haulmont.thirdparty/eclipselink

method.setReturnType("ClassDescriptor");
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

method.setReturnType("ClassDescriptor");
origin: org.eclipse.persistence/org.eclipse.persistence.core

method.setReturnType("ClassDescriptor");
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;
}
org.eclipse.persistence.internal.codegenNonreflectiveMethodDefinitionsetReturnType

Popular methods of NonreflectiveMethodDefinition

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JButton (javax.swing)
  • Top plugins for Android Studio
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