Java tutorial
/* Copyright (c) 2012-2014, terrestris GmbH & Co. KG * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * (This is the BSD 3-Clause, sometimes called 'BSD New' or 'BSD Simplified', * see http://opensource.org/licenses/BSD-3-Clause) */ package de.terrestris.shogun.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.fasterxml.jackson.annotation.JsonAutoDetect; /** * WmsProxyConfig POJO * * @author terrestris GmbH & Co. KG * * TODO remove this for 0.1 release? * */ @JsonAutoDetect @Entity @Table(name = "TBL_WMSPROXYCONFIG") public class WmsProxyConfig extends OwsProxyConfig { private String layers; private String srs; private String styles; private String bbox; private String width; private String height; private String format; private String exceptions; private String transparent; /** * @return the layers */ @Column(name = "LAYERS", nullable = false) public String getLayers() { return layers; } /** * @param layers the layers to set */ public void setLayers(String layers) { this.layers = layers; } /** * @return the srs */ @Column(name = "SRS", nullable = false) public String getSrs() { return srs; } /** * @param srs the srs to set */ public void setSrs(String srs) { this.srs = srs; } /** * @return the styles */ @Column(name = "STYLES", nullable = false) public String getStyles() { return styles; } /** * @param styles the styles to set */ public void setStyles(String styles) { this.styles = styles; } /** * @return the bbox */ @Column(name = "BBOX", nullable = false) public String getBbox() { return bbox; } /** * @param bbox the bbox to set */ public void setBbox(String bbox) { this.bbox = bbox; } /** * @return the width */ @Column(name = "WIDTH", nullable = false) public String getWidth() { return width; } /** * @param width the width to set */ public void setWidth(String width) { this.width = width; } /** * @return the height */ @Column(name = "HEIGHT", nullable = false) public String getHeight() { return height; } /** * @param height the height to set */ public void setHeight(String height) { this.height = height; } /** * @return the format */ @Column(name = "FORMAT", nullable = false) public String getFormat() { return format; } /** * @param format the format to set */ public void setFormat(String format) { this.format = format; } /** * @return the exceptions */ @Column(name = "EXCEPTIONS", nullable = false) public String getExceptions() { return exceptions; } /** * @param exceptions the exceptions to set */ public void setExceptions(String exceptions) { this.exceptions = exceptions; } /** * @return the transparent */ @Column(name = "TRANSPARENT", nullable = false) public String getTransparent() { return transparent; } /** * @param transparent the transparent to set */ public void setTransparent(String transparent) { this.transparent = transparent; } /** * */ public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).appendSuper(super.toString()) .append("layers", layers).append("srs", srs).append("styles", styles).append("bbox", bbox) .append("width", width).append("height", height).append("format", format) .append("exceptions", exceptions).append("transparent", transparent).toString(); } }