Codota Logo
ClassDefinition.setSuperClass
Code IndexAdd Codota 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)

  • Common ways to obtain ClassDefinition
private void myMethod () {
ClassDefinition c =
  • Codota Iconnew ClassDefinition()
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onCreateOptionsMenu (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now