Package org.geoserver.config.hibernate.beans

Examples of org.geoserver.config.hibernate.beans.GeoServerInfoImplHb


            configuration.setContact(getFactory().createContact());
        }

        // retrieve existing global
        GeoServerInfo currentGlobal = getGlobal();
        GeoServerInfoImplHb merged = null;

        if (currentGlobal == null) {
            if (LOGGER.isLoggable(Level.INFO))
                LOGGER.info("Storing first instance of GeoServerInfo");

            GeoServerInfoImplHb inserted = (GeoServerInfoImplHb) this.serviceDAO
                    .save(configuration);
            inserted.copyTo((GeoServerInfoImplHb) configuration);
            ((GeoServerInfoImplHb) configuration).setId(inserted.getId());
        } else {

            GeoServerInfoImplHb oldconf = (GeoServerInfoImplHb) currentGlobal;
            GeoServerInfoImplHb newconf = (GeoServerInfoImplHb) configuration;

            newconf.setId(oldconf.getId());
            merged = (GeoServerInfoImplHb) this.serviceDAO.update(newconf);
            merged.copyTo(newconf);
        }

        JAIInitializer initializer = new JAIInitializer();
View Full Code Here


    private final static Logger LOGGER = Logger.getLogger(HibGeoServerFactoryImpl.class);

    transient protected ApplicationContext applicationContext = null;

    public GeoServerInfo createGlobal() {
        return new GeoServerInfoImplHb();
    }
View Full Code Here

TOP

Related Classes of org.geoserver.config.hibernate.beans.GeoServerInfoImplHb

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.