Codota Logo
ClassDefinition.addMethod
Code IndexAdd Codota to your IDE (free)

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

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

/**
 * 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.addMethod(buildConstructor());
  classDefinition.addMethod(buildLoginMethod(getProject().getDatasourceLogin()));
    classDefinition.addMethod(buildDescriptorMethod(descriptor));
origin: com.haulmont.thirdparty/eclipselink

classDefinition.addMethod(buildConstructor());
  classDefinition.addMethod(buildLoginMethod(getProject().getDatasourceLogin()));
    classDefinition.addMethod(buildDescriptorMethod(descriptor));
origin: org.eclipse.persistence/org.eclipse.persistence.core

classDefinition.addMethod(buildConstructor());
  classDefinition.addMethod(buildLoginMethod(getProject().getDatasourceLogin()));
    classDefinition.addMethod(buildDescriptorMethod(descriptor));
org.eclipse.persistence.internal.codegenClassDefinitionaddMethod

Popular methods of ClassDefinition

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

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
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