| | |
| | | PrintfFormat pf = new PrintfFormat(CREATE_VIEWSQL); |
| | | String sql = pf.sprintf(new Object[]{viewName, schemaName, tableName}); |
| | | Statement stmt = connection.createStatement(); |
| | | stmt.execute(sql); |
| | | |
| | | pf = new PrintfFormat(ALTER_VIEWSQL + ownerName); |
| | | sql = pf.sprintf(viewName); |
| | | stmt.execute(sql); |
| | | stmt.close(); |
| | | try { |
| | | stmt.execute(sql); |
| | | pf = new PrintfFormat(ALTER_VIEWSQL + ownerName); |
| | | sql = pf.sprintf(viewName); |
| | | stmt.execute(sql); |
| | | } catch (SQLException e) { |
| | | // logger.warn(e.getMessage(), e); |
| | | logger.info(sql == null ? "SQL=NULL" : "SQL=" + sql); |
| | | throw e; |
| | | } finally { |
| | | stmt.close(); |
| | | } |
| | | // connection.commit(); |
| | | } |
| | | |
| | |
| | | try { |
| | | String currentTargetSchema = retrieveCurrentSchemaName(connection, vsstatusBefore); |
| | | if (currentTargetSchema == null) { |
| | | logger.info("Cannot found target schema in dataStore."); |
| | | logger.info("Cannot found target schema in dataStore. status=" + vsstatusBefore); |
| | | return; |
| | | } |
| | | String existTargetSchema = null; |
| | |
| | | }; |
| | | lge.setBounds("EPSG:3826",293838.061931726,2758423.49415501,311845.457747425,2768966.72993585); |
| | | String defaultLayerNames = buildDefaultWMSLayerNames(DEFAULT_NAMESPACE, configs, lge); |
| | | logger.info(key + ":" + defaultLayerNames); |
| | | logger.info(lge.toString()); |
| | | // logger.info(key + ":" + defaultLayerNames); |
| | | // logger.info(lge.toString()); |
| | | // wmsConfig.getBaseMapLayers().put(key, defaultLayerNames); |
| | | String layerGroupName = key.toString(); |
| | | RESTLayerGroup layerGroup = reader.getLayerGroup(DEFAULT_NAMESPACE, layerGroupName); |