Package org.geoserver.services.hibernate.beans

Examples of org.geoserver.services.hibernate.beans.GMLInfoImplHb


        ret.setMaxFeatures(wfs.getMaxFeatures());
        ret.setServiceLevel(wfs.getServiceLevel());

        for (Version version : wfs.getGML().keySet()) {
            GMLInfo info = wfs.getGML().get(version);
            GMLInfoImplHb infohb = translateGMLInfo(info);
            ret.getGML().put(version, infohb);
        }

        return ret;
    }
View Full Code Here


        return ret;
    }

    private GMLInfoImplHb translateGMLInfo(GMLInfo info) {
        GMLInfoImplHb ret = new GMLInfoImplHb();
        ret.setSrsNameStyle(info.getSrsNameStyle());
        return ret;
    }
View Full Code Here

        wfs.setName("wfs");
        wfs.setTitle("Default WFS");
        wfs.setEnabled(true);
        wfs.setServiceLevel(WFSInfo.ServiceLevel.COMPLETE);
        // gml2
        GMLInfo gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.NORMAL);
        wfs.getGML().put(WFSInfo.Version.V_10, gml);
        // gml3
        gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.URN);
        wfs.getGML().put(WFSInfo.Version.V_11, gml);
        wfs.setGeoServer(config);
        config.add(wfs);
    }
View Full Code Here

        wfs.setEnabled(true);

        wfs.setServiceLevel(WFSInfo.ServiceLevel.COMPLETE);

        // gml2
        GMLInfo gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.NORMAL);
        wfs.getGML().put(WFSInfo.Version.V_10, gml);

        // gml3
        gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.URN);
        wfs.getGML().put(WFSInfo.Version.V_11, gml);
        wfs.setGeoServer(serviceCatalog);

        this.serviceCatalog.add(wfs);
View Full Code Here

   public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
           throws HibernateException, SQLException {

       String srsNameStyle = rs.getString(names[0]);
       GMLInfoImplHb gmlInfo = new GMLInfoImplHb();
       gmlInfo.setSrsNameStyle(GMLInfo.SrsNameStyle.valueOf(srsNameStyle));
       return gmlInfo;
   }
View Full Code Here

   }

   public void nullSafeSet(PreparedStatement st, Object value, int index)
           throws HibernateException, SQLException {

       GMLInfoImplHb gmlInfo = (GMLInfoImplHb)value;

       if (gmlInfo == null) {
           st.setString(index, GMLInfo.SrsNameStyle.NORMAL.name());
       } else {
           st.setString(index, gmlInfo.getSrsNameStyle().name());
       }
   }
View Full Code Here

TOP

Related Classes of org.geoserver.services.hibernate.beans.GMLInfoImplHb

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.