Skip to content

Commit 5154a9e

Browse files
committed
HBX-2789: Review WrapperFactory class and create only new Wrapper intances
- Move interface 'org.hibernate.tool.orm.jbt.wrp.Wrapper' to 'org.hibernate.tool.orm.jbt.api.wrp.Wrapper' Signed-off-by: Koen Aers <[email protected]>
1 parent 10d2481 commit 5154a9e

40 files changed

+5
-71
lines changed

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/ArtifactCollectorWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import java.io.File;
44
import java.util.Set;
55

6-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
7-
86
public interface ArtifactCollectorWrapper extends Wrapper {
97

108
Set<String> getFileTypes();

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/Cfg2HbmToolWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hibernate.tool.orm.jbt.api.wrp;
22

3-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
4-
53
public interface Cfg2HbmToolWrapper extends Wrapper {
64

75
String getTag(PersistentClassWrapper pcw);

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/ClassMetadataWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hibernate.tool.orm.jbt.api.wrp;
22

3-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
4-
53
public interface ClassMetadataWrapper extends Wrapper {
64

75
String getEntityName();

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/CollectionMetadataWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hibernate.tool.orm.jbt.api.wrp;
22

3-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
4-
53
public interface CollectionMetadataWrapper extends Wrapper {
64

75
TypeWrapper getElementType();

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/ColumnWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hibernate.tool.orm.jbt.api.wrp;
22

3-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
4-
53
public interface ColumnWrapper extends Wrapper {
64

75
static final int DEFAULT_LENGTH = 255;

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/ConfigurationWrapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.util.Iterator;
55
import java.util.Properties;
66

7-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
87
import org.w3c.dom.Document;
98
import org.xml.sax.EntityResolver;
109

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/CriteriaWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import java.util.List;
44

5-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
6-
75
public interface CriteriaWrapper extends Wrapper {
86

97
void setMaxResults(int intValue);

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/DatabaseReaderWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import java.util.List;
44
import java.util.Map;
55

6-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
7-
86
public interface DatabaseReaderWrapper extends Wrapper {
97
Map<String, List<TableWrapper>> collectDatabaseTables();
108
}

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/DdlExporterWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import java.util.Properties;
44

5-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
6-
75
public interface DdlExporterWrapper extends Wrapper {
86

97
void setExport(boolean b);

jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/EnvironmentWrapper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.hibernate.tool.orm.jbt.api.wrp;
22

3-
import org.hibernate.tool.orm.jbt.wrp.Wrapper;
4-
53
public interface EnvironmentWrapper extends Wrapper {
64

75
String getTransactionManagerStrategy();

0 commit comments

Comments
 (0)