/** * 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; }
/** * 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; }
/** * 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; }
classDefinition.setPackageName(getPackageName());
classDefinition.setPackageName(getPackageName());
classDefinition.setPackageName(getPackageName());