Author: vyemialyanchyk
Date: 2010-03-30 13:57:51 -0400 (Tue, 30 Mar 2010)
New Revision: 21143
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ArtifactCollectorStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ConfigurationStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ExporterStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/GenericExporterStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateConfigurationExporterStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingExporterStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingGlobalSettingsStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/OverrideRepositoryStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/POJOClassStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ReverseEngineeringStrategyStub.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/TableFilterStub.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - update
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ArtifactCollectorStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ArtifactCollectorStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ArtifactCollectorStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -17,12 +17,11 @@
}
public File[] getFiles(String string) {
- return null;
+ return artifactCollector.getFiles(string);
}
public void formatFiles() {
- // TODO Auto-generated method stub
-
+ artifactCollector.formatFiles();
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ConfigurationStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ConfigurationStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ConfigurationStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -132,7 +132,7 @@
}
public void updateExporter(ExporterStub exporter) {
- exporter.setConfiguration(configuration);
+ exporter.setConfiguration(this);
}
public Properties getProperties() {
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ExporterStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ExporterStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ExporterStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -3,7 +3,6 @@
import java.io.File;
import java.util.Properties;
-import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2x.Exporter;
public class ExporterStub {
@@ -15,33 +14,27 @@
}
public void start() {
- // TODO Auto-generated method stub
-
+ exporter.start();
}
- public void setConfiguration(Configuration configuration) {
- // TODO Auto-generated method stub
-
+ public void setConfiguration(ConfigurationStub configuration) {
+ exporter.setConfiguration(configuration.configuration);
}
public void setProperties(Properties props) {
- // TODO Auto-generated method stub
-
+ exporter.setProperties(props);
}
public void setArtifactCollector(ArtifactCollectorStub collector) {
- // TODO Auto-generated method stub
-
+ exporter.setArtifactCollector(collector.artifactCollector);
}
public void setOutputDirectory(File file) {
- // TODO Auto-generated method stub
-
+ exporter.setOutputDirectory(file);
}
public void setTemplatePath(String[] array) {
- // TODO Auto-generated method stub
-
+ exporter.setTemplatePath(array);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/GenericExporterStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/GenericExporterStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/GenericExporterStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -11,18 +11,15 @@
}
public void setFilePattern(String property) {
- // TODO Auto-generated method stub
-
+ genericExporter.setFilePattern(property);
}
public void setTemplateName(String property) {
- // TODO Auto-generated method stub
-
+ genericExporter.setTemplateName(property);
}
public void setForEach(String property) {
- // TODO Auto-generated method stub
-
+ genericExporter.setForEach(property);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateConfigurationExporterStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateConfigurationExporterStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateConfigurationExporterStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -18,12 +18,10 @@
}
public void setCustomProperties(Properties props) {
- // TODO Auto-generated method stub
-
+ hibernateConfigurationExporter.setCustomProperties(props);
}
public void setOutput(StringWriter stringWriter) {
- // TODO Auto-generated method stub
-
+ hibernateConfigurationExporter.setOutput(stringWriter);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingExporterStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingExporterStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingExporterStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -16,13 +16,11 @@
}
public void setGlobalSettings(HibernateMappingGlobalSettingsStub hmgs) {
- // TODO Auto-generated method stub
-
+ hibernateMappingExporter.setGlobalSettings(hmgs.hibernateMappingGlobalSettings);
}
public void start() {
- // TODO Auto-generated method stub
-
+ hibernateMappingExporter.start();
}
protected File getOutputDirectory() {
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingGlobalSettingsStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingGlobalSettingsStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/HibernateMappingGlobalSettingsStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -15,7 +15,6 @@
}
public void setDefaultAccess(String string) {
- // TODO Auto-generated method stub
-
+ hibernateMappingGlobalSettings.setDefaultAccess(string);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/OverrideRepositoryStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/OverrideRepositoryStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/OverrideRepositoryStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -2,20 +2,27 @@
import java.io.File;
+import org.hibernate.cfg.reveng.OverrideRepository;
+
public class OverrideRepositoryStub {
+ protected OverrideRepository overrideRepository;
+ protected OverrideRepositoryStub(Object overrideRepository) {
+ this.overrideRepository = (OverrideRepository)overrideRepository;
+ }
+
public void addFile(File file) {
- // TODO Auto-generated method stub
-
+ overrideRepository.addFile(file);
}
public ReverseEngineeringStrategyStub getReverseEngineeringStrategy(
ReverseEngineeringStrategyStub res) {
- // TODO Auto-generated method stub
- return null;
+ return new ReverseEngineeringStrategyStub(
+ overrideRepository.getReverseEngineeringStrategy(res.reverseEngineeringStrategy));
}
public void addTableFilter(TableFilterStub tf) {
+ overrideRepository.addTableFilter(tf.tableFilter);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/POJOClassStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/POJOClassStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/POJOClassStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -11,8 +11,7 @@
}
public String getQualifiedDeclarationName() {
- // TODO Auto-generated method stub
- return null;
+ return pojoClass.getQualifiedDeclarationName();
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ReverseEngineeringStrategyStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ReverseEngineeringStrategyStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/ReverseEngineeringStrategyStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -14,8 +14,7 @@
return ReverseEngineeringStrategy.class.getName();
}
- public void setSettings(ReverseEngineeringSettingsStub qqsettings) {
- // TODO Auto-generated method stub
-
+ public void setSettings(ReverseEngineeringSettingsStub settings) {
+ reverseEngineeringStrategy.setSettings(settings.reverseEngineeringSettings);
}
}
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/TableFilterStub.java
===================================================================
---
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/TableFilterStub.java 2010-03-30
17:25:57 UTC (rev 21142)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.mediator/src/org/hibernate/mediator/stubs/TableFilterStub.java 2010-03-30
17:57:51 UTC (rev 21143)
@@ -1,45 +1,45 @@
package org.hibernate.mediator.stubs;
+import org.hibernate.cfg.reveng.TableFilter;
+
public class TableFilterStub {
+
+ protected TableFilter tableFilter;
+ protected TableFilterStub(Object tableFilter) {
+ this.tableFilter = (TableFilter)tableFilter;
+ }
+
public void setExclude(Boolean exclude) {
- // TODO Auto-generated method stub
-
+ tableFilter.setExclude(exclude);
}
public void setMatchCatalog(String matchCatalog) {
- // TODO Auto-generated method stub
-
+ tableFilter.setMatchCatalog(matchCatalog);
}
public void setMatchName(String matchName) {
- // TODO Auto-generated method stub
-
+ tableFilter.setMatchName(matchName);
}
public void setMatchSchema(String matchSchema) {
- // TODO Auto-generated method stub
-
+ tableFilter.setMatchSchema(matchSchema);
}
public Boolean getExclude() {
- // TODO Auto-generated method stub
- return null;
+ return tableFilter.getExclude();
}
public String getMatchCatalog() {
- // TODO Auto-generated method stub
- return null;
+ return tableFilter.getMatchCatalog();
}
public String getMatchSchema() {
- // TODO Auto-generated method stub
- return null;
+ return tableFilter.getMatchSchema();
}
public String getMatchName() {
- // TODO Auto-generated method stub
- return null;
+ return tableFilter.getMatchName();
}
}