congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ClassDefinition.setPackageName
Code IndexAdd Tabnine to your IDE (free)

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

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

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.setPackageName(getPackageName());
origin: com.haulmont.thirdparty/eclipselink

classDefinition.setPackageName(getPackageName());
origin: org.eclipse.persistence/org.eclipse.persistence.core

classDefinition.setPackageName(getPackageName());
org.eclipse.persistence.internal.codegenClassDefinitionsetPackageName

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
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now