File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
21
|
com/salto/db/generator/plugin/EJB3HibernateDAOAndTestCasesPlugin.java |
27
|
public void execute(String className, JdoInfo info) throws Exception {
ejb3Plugin.execute(className, info);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(
this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfo", info);
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / "
+ this.getShortDescription());
context.put("date", new Date());
info.setJavaPckName(pckName);
info.setJavaClassName(className);
runVelocity(TEMPLATE_PATH, "hibernatedao.vm", srcPath + "/"
+ (pckName + ".hibernate").replace('.', '/') + "/", className
+ "HibernateDAO.java", context);
runVelocity(TEMPLATE_PATH, "dao.vm", srcPath + "/"
+ pckName.replace('.', '/') + "/", className + "DAO.java",
context);
|
File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
67
|
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOAndTestCasesPlugin.java |
55
|
super.postExecute(infos);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(
this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfos", infos);
context.put("connInfo", infos[0].getConnInfo());
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / "
+ this.getShortDescription());
context.put("date", new Date());
context.put("dialect", this.ejb3Plugin);
context.put("pckName", pckName);
context.put("hibernateDialectHelper", new HibernateDialectHelper());
context.put("annotations", String.valueOf(ejb3Plugin
.isGenerateAnnotations()));
runVelocity(TEMPLATE_PATH, "applicationContext-test.xml.vm", srcPath,
|
File |
Line |
salto/tool/sql/DatabaseInfo.java |
407
|
salto/tool/sql/DatabaseInfo.java |
809
|
rs = dbInfo.getCrossReference(pkCat, shema, tableName, fkCat, shema, null);
while (rs.next()) {
TableFK tbfk = new TableFK();
tbfk.setPkTableCat(rs.getString(1));
tbfk.setPkTableShem(rs.getString(2));
tbfk.setPkTableName(rs.getString(3));
tbfk.setPkColumnName(rs.getString(4));
tbfk.setFkTableCat(rs.getString(5));
tbfk.setFkTableShem(rs.getString(6));
tbfk.setFkTableName(rs.getString(7));
tbfk.setFkColumnName(rs.getString(8));
tbfk.setKeySeq(rs.getShort(9));
tempRes.add(tbfk);
}
|
File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
69
|
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOPlugin.java |
60
|
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfos", infos);
context.put("connInfo", infos[0].getConnInfo());
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
context.put("dialect", this.ejb3Plugin);
context.put("pckName", pckName);
context.put("annotations", String.valueOf(ejb3Plugin.isGenerateAnnotations()));
|
File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
21
|
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOPlugin.java |
21
|
public void execute(String className, JdoInfo info) throws Exception {
ejb3Plugin.execute(className, info);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfo", info);
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
info.setJavaPckName(pckName);
info.setJavaClassName(className);
runVelocity(EJB3AndHibernateDAOPlugin.TEMPLATE_PATH, "hibernatedao.vm", srcPath + "/" + (pckName + ".hibernate").replace('.', '/') + "/", className + "HibernateDAO.java", context);
|
File |
Line |
salto/tool/jdo/data/JdoInfo.java |
73
|
salto/tool/jdo/data/JdoInfo.java |
103
|
for (int j = 0; j < this.getImportedFk().length && basic; j++) {
TableFK[] fks = this.getImportedFk()[j];
for (int k = 0; k < fks.length; k++) {
if (fks[k].getFkColumnName().equals(jdoColInfos[i].getColName())) {
basic = false;
}
}
}
if (basic) {
list.add(jdoColInfos[i]);
}
}
return (JdoColInfo[]) list.toArray(new JdoColInfo[list.size()]);
}
/**
* @return Returns the jdoColInfos.
*/
public JdoColInfo[] getJdoColInfos() {
|
File |
Line |
salto/tool/sql/DatabaseInfo.java |
408
|
salto/tool/sql/DatabaseInfo.java |
545
|
while (rs.next()) {
TableFK tbfk = new TableFK();
tbfk.setPkTableCat(rs.getString(1));
tbfk.setPkTableShem(rs.getString(2));
tbfk.setPkTableName(rs.getString(3));
tbfk.setPkColumnName(rs.getString(4));
tbfk.setFkTableCat(rs.getString(5));
tbfk.setFkTableShem(rs.getString(6));
tbfk.setFkTableName(rs.getString(7));
tbfk.setFkColumnName(rs.getString(8));
tbfk.setKeySeq(rs.getShort(9));
|
File |
Line |
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOAndTestCasesPlugin.java |
55
|
com/salto/db/generator/plugin/SpringWebappPlugin.java |
58
|
plugin.postExecute(infos);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfos", infos);
context.put("connInfo", infos[0].getConnInfo());
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
context.put("dialect", this.plugin);
|
File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
67
|
com/salto/db/generator/plugin/SpringWebappPlugin.java |
58
|
plugin.postExecute(infos);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfos", infos);
context.put("connInfo", infos[0].getConnInfo());
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
context.put("dialect", this.plugin);
|
File |
Line |
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOPlugin.java |
60
|
com/salto/db/generator/plugin/SpringWebappPlugin.java |
60
|
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfos", infos);
context.put("connInfo", infos[0].getConnInfo());
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
context.put("dialect", this.plugin);
|
File |
Line |
com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java |
23
|
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOAndTestCasesPlugin.java |
20
|
plugin.execute(className, info);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfo", info);
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
info.setJavaPckName(pckName);
info.setJavaClassName(className);
runVelocity(TEMPLATE_PATH, "listcontroller.vm", srcPath + "/src/" + (pckName + ".webapp.controller").replace('.', '/') + "/", className + "ListController.java", context);
|
File |
Line |
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOAndTestCasesPlugin.java |
20
|
com/salto/db/generator/plugin/SpringEJB3AndHibernateDAOPlugin.java |
23
|
ejb3Plugin.execute(className, info);
CreatorUtil.getDoNameCreator().setPrefix(doPrefix);
CreatorUtil.getDoNameCreator().setDefaultNameOffset(this.defaultNameOffset);
Map context = new HashMap();
context.put("jdoInfo", info);
context.put("util", CreatorUtil.getInstance());
context.put("templatePath", TEMPLATE_PATH);
context.put("generatorVersion", Constants.GENERATOR_NAME + " / " + this.getShortDescription());
context.put("date", new Date());
info.setJavaPckName(pckName);
info.setJavaClassName(className);
runVelocity(EJB3AndHibernateDAOPlugin.TEMPLATE_PATH, "hibernatedao.vm", srcPath + "/" + (pckName + ".hibernate").replace('.', '/') + "/", className + "HibernateDAO.java", context);
|