Tabnine Logo
NonreflectiveMethodDefinition.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.internal.codegen.NonreflectiveMethodDefinition
constructor

Best Java code snippets using org.eclipse.persistence.internal.codegen.NonreflectiveMethodDefinition.<init> (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

NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
origin: org.eclipse.persistence/org.eclipse.persistence.core

NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
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();
origin: com.haulmont.thirdparty/eclipselink

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

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

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

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

protected NonreflectiveMethodDefinition buildLoginMethod(DatabaseLogin login) {
  NonreflectiveMethodDefinition method = new NonreflectiveMethodDefinition();
org.eclipse.persistence.internal.codegenNonreflectiveMethodDefinition<init>

Popular methods of NonreflectiveMethodDefinition

  • addLine
  • adjustArgumentTypeNames
  • adjustTypeName
  • getArgumentNames
  • getArgumentTypeNames
  • getArgumentTypes
  • replaceArgumentTypeName
  • setIsConstructor
  • setName
  • setReturnType

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
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