Revision 30580 branches/v2_0_0_prep/libraries/libFMap_daldb/src-test/org/gvsig/fmap/dal/store/postgresql/TestPostgreSQLWrite.java
TestPostgreSQLWrite.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import java.util.Iterator; |
34 | 34 |
|
35 |
import org.cresques.ProjectionLibrary; |
|
36 |
import org.cresques.impl.CresquesCtsLibrary; |
|
37 |
import org.gvsig.fmap.dal.DALDbLibrary; |
|
38 | 35 |
import org.gvsig.fmap.dal.DataStoreParameters; |
39 | 36 |
import org.gvsig.fmap.dal.exception.DataException; |
40 | 37 |
import org.gvsig.fmap.dal.feature.BaseTestEditableFeatureStore; |
... | ... | |
46 | 43 |
import org.gvsig.fmap.dal.feature.FeatureStoreTransform; |
47 | 44 |
import org.gvsig.fmap.dal.feature.FeatureType; |
48 | 45 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
49 |
import org.gvsig.fmap.dal.index.spatial.jts.JTSIndexLibrary; |
|
50 |
import org.gvsig.fmap.dal.store.db.DBStoreLibrary; |
|
51 |
import org.gvsig.fmap.dal.store.jdbc.JDBCLibrary; |
|
52 | 46 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorer; |
53 | 47 |
import org.gvsig.fmap.geom.Geometry; |
54 |
import org.gvsig.fmap.geom.impl.DefaultGeometryLibrary; |
|
55 | 48 |
import org.gvsig.fmap.geom.operation.towkt.ToWKT; |
56 | 49 |
import org.gvsig.tools.evaluator.Evaluator; |
57 | 50 |
import org.gvsig.tools.evaluator.EvaluatorData; |
58 | 51 |
import org.gvsig.tools.evaluator.EvaluatorException; |
59 | 52 |
import org.gvsig.tools.evaluator.EvaluatorFieldsInfo; |
53 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
60 | 54 |
|
61 | 55 |
|
62 | 56 |
|
... | ... | |
76 | 70 |
// FIXME |
77 | 71 |
// ToolsLocator.registerDefaultPersistenceManager(XMLEntityManager.class); |
78 | 72 |
|
79 |
DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
80 |
defGeomLib.initialize(); |
|
73 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
74 |
|
|
75 |
// DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
76 |
// defGeomLib.initialize(); |
|
77 |
// |
|
78 |
// |
|
79 |
// ProjectionLibrary projLib = new ProjectionLibrary(); |
|
80 |
// projLib.initialize(); |
|
81 |
// |
|
82 |
// CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
83 |
// cresquesLib.initialize(); |
|
84 |
// |
|
85 |
// DALDbLibrary libDb = new DALDbLibrary(); |
|
86 |
// libDb.initialize(); |
|
87 |
// |
|
88 |
// DBStoreLibrary libDbStore = new DBStoreLibrary(); |
|
89 |
// libDbStore.initialize(); |
|
90 |
// |
|
91 |
// JDBCLibrary libJDBC = new JDBCLibrary(); |
|
92 |
// libJDBC.initialize(); |
|
93 |
// |
|
94 |
// PostgreSQLLibrary pgLib = new PostgreSQLLibrary(); |
|
95 |
// pgLib.initialize(); |
|
96 |
// |
|
97 |
// JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
98 |
// jtsIndex.initialize(); |
|
99 |
// |
|
100 |
// projLib.postInitialize(); |
|
101 |
// cresquesLib.postInitialize(); |
|
102 |
// defGeomLib.postInitialize(); |
|
81 | 103 |
|
82 |
|
|
83 |
ProjectionLibrary projLib = new ProjectionLibrary(); |
|
84 |
projLib.initialize(); |
|
85 |
|
|
86 |
CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
87 |
cresquesLib.initialize(); |
|
88 |
|
|
89 |
DALDbLibrary libDb = new DALDbLibrary(); |
|
90 |
libDb.initialize(); |
|
91 |
|
|
92 |
DBStoreLibrary libDbStore = new DBStoreLibrary(); |
|
93 |
libDbStore.initialize(); |
|
94 |
|
|
95 |
JDBCLibrary libJDBC = new JDBCLibrary(); |
|
96 |
libJDBC.initialize(); |
|
97 |
|
|
98 |
PostgreSQLLibrary pgLib = new PostgreSQLLibrary(); |
|
99 |
pgLib.initialize(); |
|
100 |
|
|
101 |
JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
102 |
jtsIndex.initialize(); |
|
103 |
|
|
104 |
projLib.postInitialize(); |
|
105 |
cresquesLib.postInitialize(); |
|
106 |
defGeomLib.postInitialize(); |
|
107 |
|
|
108 | 104 |
// Initialize wkt geom operation |
109 | 105 |
int wktCode = ToWKT.CODE; |
110 | 106 |
|
111 |
libDb.postInitialize(); |
|
112 |
libDbStore.postInitialize(); |
|
113 |
libJDBC.postInitialize(); |
|
114 |
pgLib.postInitialize(); |
|
115 |
jtsIndex.postInitialize(); |
|
107 |
// libDb.postInitialize();
|
|
108 |
// libDbStore.postInitialize();
|
|
109 |
// libJDBC.postInitialize();
|
|
110 |
// pgLib.postInitialize();
|
|
111 |
// jtsIndex.postInitialize();
|
|
116 | 112 |
} |
117 | 113 |
|
118 | 114 |
public DataStoreParameters getDefaultDataStoreParameters() |
Also available in: Unified diff