Revision 294 trunk/org.gvsig.postgresql/org.gvsig.postgresql.provider/src/main/java/org/gvsig/fmap/dal/store/postgresql/PostgreSQLLibrary.java
PostgreSQLLibrary.java | ||
---|---|---|
39 | 39 |
|
40 | 40 |
public class PostgreSQLLibrary extends AbstractLibrary { |
41 | 41 |
|
42 |
static String DEFAULT_JDCB_DRIVER_NAME = "org.postgresql.Driver"; |
|
42 |
static String DEFAULT_JDCB_DRIVER_NAME = "org.postgresql.Driver"; |
|
43 |
public static final String NAME = "PostgreSQL"; |
|
43 | 44 |
|
44 | 45 |
@Override |
45 | 46 |
public void doRegistration() { |
... | ... | |
116 | 117 |
.getDataManager(); |
117 | 118 |
|
118 | 119 |
if (!dataman.getStoreProviders().contains(PostgreSQLStoreProvider.NAME)) { |
119 |
dataman.registerStoreProvider(PostgreSQLStoreProvider.NAME,
|
|
120 |
PostgreSQLStoreProvider.class,
|
|
121 |
PostgreSQLStoreParameters.class);
|
|
120 |
dataman.registerStoreProviderFactory(
|
|
121 |
new PostgreSQLStoreProviderFactory()
|
|
122 |
);
|
|
122 | 123 |
} |
123 | 124 |
|
124 | 125 |
if (!dataman.getExplorerProviders().contains( |
125 | 126 |
PostgreSQLStoreProvider.NAME)) { |
126 |
dataman.registerExplorerProvider(PostgreSQLServerExplorer.NAME,
|
|
127 |
PostgreSQLServerExplorer.class,
|
|
128 |
PostgreSQLServerExplorerParameters.class);
|
|
127 |
dataman.registerServerExplorerFactory(
|
|
128 |
new PostgreSQLServerExplorerFactory()
|
|
129 |
);
|
|
129 | 130 |
} |
130 | 131 |
if( ex!=null ) { |
131 | 132 |
throw ex; |
Also available in: Unified diff