Tabnine Logo
ClassDefinition.setSuperClass
Code IndexAdd Tabnine to your IDE (free)

How to use
setSuperClass
method
in
org.eclipse.persistence.internal.codegen.ClassDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.ClassDefinition.setSuperClass (Showing top 9 results out of 315)

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

private void adjustTypeNames(HashMap typeNameMap) {
  setSuperClass(adjustTypeName(getSuperClass(), typeNameMap));
  for (Iterator i = new Vector(getInterfaces()).iterator(); i.hasNext();) {
    String interfaceName = (String)i.next();
    replaceInterface(interfaceName, adjustTypeName(interfaceName, typeNameMap));
  }
  for (Iterator i = getAttributes().iterator(); i.hasNext();) {
    ((AttributeDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
  for (Iterator i = getMethods().iterator(); i.hasNext();) {
    ((MethodDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

private void adjustTypeNames(HashMap typeNameMap) {
  setSuperClass(adjustTypeName(getSuperClass(), typeNameMap));
  for (Iterator i = new Vector(getInterfaces()).iterator(); i.hasNext();) {
    String interfaceName = (String)i.next();
    replaceInterface(interfaceName, adjustTypeName(interfaceName, typeNameMap));
  }
  for (Iterator i = getAttributes().iterator(); i.hasNext();) {
    ((AttributeDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
  for (Iterator i = getMethods().iterator(); i.hasNext();) {
    ((MethodDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
}
origin: com.haulmont.thirdparty/eclipselink

private void adjustTypeNames(HashMap typeNameMap) {
  setSuperClass(adjustTypeName(getSuperClass(), typeNameMap));
  for (Iterator i = new Vector(getInterfaces()).iterator(); i.hasNext();) {
    String interfaceName = (String)i.next();
    replaceInterface(interfaceName, adjustTypeName(interfaceName, typeNameMap));
  }
  for (Iterator i = getAttributes().iterator(); i.hasNext();) {
    ((AttributeDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
  for (Iterator i = getMethods().iterator(); i.hasNext();) {
    ((MethodDefinition)i.next()).adjustTypeNames(typeNameMap);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return a class definition object representing the code to be generated for the table creator.
 * This class will have one method per descriptor and its toString can be used to convert it to code.
 */
protected ClassDefinition generateCreatorClass() {
  ClassDefinition classDefinition = new ClassDefinition();
  classDefinition.setName(getClassName());
  classDefinition.setSuperClass("org.eclipse.persistence.tools.schemaframework.TableCreator");
  classDefinition.setPackageName(getPackageName());
  classDefinition.addImport("org.eclipse.persistence.sessions.*");
  classDefinition.addImport("org.eclipse.persistence.tools.schemaframework.*");
  classDefinition.setComment("This class was generated by the TopLink table creator generator." + Helper.cr() + "It stores the meta-data (tables) that define the database schema." + Helper.cr() + "@see org.eclipse.persistence.sessions.factories.TableCreatorClassGenerator");
  classDefinition.addMethod(buildConstructor());
  for (Enumeration tablesEnum = getTableCreator().getTableDefinitions().elements();
       tablesEnum.hasMoreElements();) {
    TableDefinition table = (TableDefinition)tablesEnum.nextElement();
    classDefinition.addMethod(buildTableMethod(table));
  }
  return classDefinition;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return a class definition object representing the code to be generated for the table creator.
 * This class will have one method per descriptor and its toString can be used to convert it to code.
 */
protected ClassDefinition generateCreatorClass() {
  ClassDefinition classDefinition = new ClassDefinition();
  classDefinition.setName(getClassName());
  classDefinition.setSuperClass("org.eclipse.persistence.tools.schemaframework.TableCreator");
  classDefinition.setPackageName(getPackageName());
  classDefinition.addImport("org.eclipse.persistence.sessions.*");
  classDefinition.addImport("org.eclipse.persistence.tools.schemaframework.*");
  classDefinition.setComment("This class was generated by the TopLink table creator generator." + Helper.cr() + "It stores the meta-data (tables) that define the database schema." + Helper.cr() + "@see org.eclipse.persistence.sessions.factories.TableCreatorClassGenerator");
  classDefinition.addMethod(buildConstructor());
  for (TableDefinition table : getTableCreator().getTableDefinitions()) {
    classDefinition.addMethod(buildTableMethod(table));
  }
  return classDefinition;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return a class definition object representing the code to be generated for the table creator.
 * This class will have one method per descriptor and its toString can be used to convert it to code.
 */
protected ClassDefinition generateCreatorClass() {
  ClassDefinition classDefinition = new ClassDefinition();
  classDefinition.setName(getClassName());
  classDefinition.setSuperClass("org.eclipse.persistence.tools.schemaframework.TableCreator");
  classDefinition.setPackageName(getPackageName());
  classDefinition.addImport("org.eclipse.persistence.sessions.*");
  classDefinition.addImport("org.eclipse.persistence.tools.schemaframework.*");
  classDefinition.setComment("This class was generated by the TopLink table creator generator." + Helper.cr() + "It stores the meta-data (tables) that define the database schema." + Helper.cr() + "@see org.eclipse.persistence.sessions.factories.TableCreatorClassGenerator");
  classDefinition.addMethod(buildConstructor());
  for (TableDefinition table : getTableCreator().getTableDefinitions()) {
    classDefinition.addMethod(buildTableMethod(table));
  }
  return classDefinition;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

classDefinition.setSuperClass("org.eclipse.persistence.sessions.Project");
classDefinition.setPackageName(getPackageName());
origin: com.haulmont.thirdparty/eclipselink

classDefinition.setSuperClass("org.eclipse.persistence.sessions.Project");
classDefinition.setPackageName(getPackageName());
origin: org.eclipse.persistence/org.eclipse.persistence.core

classDefinition.setSuperClass("org.eclipse.persistence.sessions.Project");
classDefinition.setPackageName(getPackageName());
org.eclipse.persistence.internal.codegenClassDefinitionsetSuperClass

Javadoc

If the class to be generated is an interface, do not use this method. Instead, use addInterface(String) for each interface superclass.

Popular methods of ClassDefinition

  • <init>
  • addImport
    The importStatement should be of the form "{packageName}.{shortName or '*'}"
  • addImports
  • addMethod
  • addTypeNamesToMap
  • adjustTypeName
  • adjustTypeNames
  • getAttributes
  • getImports
  • getInnerClasses
  • getInterfaces
  • getMethods
  • getInterfaces,
  • getMethods,
  • getName,
  • getPackageName,
  • getSuperClass,
  • getType,
  • isInterface,
  • putTypeNameInMap,
  • replaceInterface,
  • setComment

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • String (java.lang)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best IntelliJ plugins
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