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

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

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

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(\"" + 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;
}
org.eclipse.persistence.internal.codegenNonreflectiveMethodDefinitionsetIsConstructor

Popular methods of NonreflectiveMethodDefinition

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JLabel (javax.swing)
  • Option (scala)
  • CodeWhisperer 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