001
002package org.avaje.ebean.ignite.config;
003
004import javax.xml.bind.annotation.XmlAccessType;
005import javax.xml.bind.annotation.XmlAccessorType;
006import javax.xml.bind.annotation.XmlAttribute;
007import javax.xml.bind.annotation.XmlType;
008
009
010/**
011 * <p>Java class for l2CacheMatch complex type.
012 * 
013 * <p>The following schema fragment specifies the expected content contained within this class.
014 * 
015 * <pre>
016 * &lt;complexType name="l2CacheMatch">
017 *   &lt;complexContent>
018 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
019 *       &lt;all>
020 *         &lt;element name="config" type="{http://ebean-orm.github.io/xml/ns/ignite}l2CacheConfig" minOccurs="0"/>
021 *       &lt;/all>
022 *       &lt;attribute name="matchClasses" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
023 *       &lt;attribute name="typeQuery" type="{http://www.w3.org/2001/XMLSchema}boolean" />
024 *       &lt;attribute name="typeBean" type="{http://www.w3.org/2001/XMLSchema}boolean" />
025 *       &lt;attribute name="typeKey" type="{http://www.w3.org/2001/XMLSchema}boolean" />
026 *       &lt;attribute name="typeManyId" type="{http://www.w3.org/2001/XMLSchema}boolean" />
027 *     &lt;/restriction>
028 *   &lt;/complexContent>
029 * &lt;/complexType>
030 * </pre>
031 * 
032 * 
033 */
034@XmlAccessorType(XmlAccessType.FIELD)
035@XmlType(name = "l2CacheMatch", propOrder = {
036
037})
038public class L2CacheMatch {
039
040    protected L2CacheConfig config;
041    @XmlAttribute(name = "matchClasses", required = true)
042    protected String matchClasses;
043    @XmlAttribute(name = "typeQuery")
044    protected Boolean typeQuery;
045    @XmlAttribute(name = "typeBean")
046    protected Boolean typeBean;
047    @XmlAttribute(name = "typeKey")
048    protected Boolean typeKey;
049    @XmlAttribute(name = "typeManyId")
050    protected Boolean typeManyId;
051
052    public String toString() {
053        String val = "classes:"+matchClasses;
054        if (Boolean.TRUE.equals(typeQuery)) {
055            val += " typeQuery:true";
056        }
057        if (Boolean.TRUE.equals(typeBean)) {
058            val += " typeBean:true";
059        }
060        if (Boolean.TRUE.equals(typeKey)) {
061            val += " typeKey:true";
062        }
063        if (Boolean.TRUE.equals(typeManyId)) {
064            val += " typeManyId:true";
065        }
066        return val;
067    }
068
069    /**
070     * Gets the value of the config property.
071     * 
072     * @return
073     *     possible object is
074     *     {@link L2CacheConfig }
075     *     
076     */
077    public L2CacheConfig getConfig() {
078        return config;
079    }
080
081    /**
082     * Sets the value of the config property.
083     * 
084     * @param value
085     *     allowed object is
086     *     {@link L2CacheConfig }
087     *     
088     */
089    public void setConfig(L2CacheConfig value) {
090        this.config = value;
091    }
092
093    /**
094     * Gets the value of the matchClasses property.
095     * 
096     * @return
097     *     possible object is
098     *     {@link String }
099     *     
100     */
101    public String getMatchClasses() {
102        return matchClasses;
103    }
104
105    /**
106     * Sets the value of the matchClasses property.
107     * 
108     * @param value
109     *     allowed object is
110     *     {@link String }
111     *     
112     */
113    public void setMatchClasses(String value) {
114        this.matchClasses = value;
115    }
116
117    /**
118     * Gets the value of the typeQuery property.
119     * 
120     * @return
121     *     possible object is
122     *     {@link Boolean }
123     *     
124     */
125    public Boolean isTypeQuery() {
126        return typeQuery;
127    }
128
129    /**
130     * Sets the value of the typeQuery property.
131     * 
132     * @param value
133     *     allowed object is
134     *     {@link Boolean }
135     *     
136     */
137    public void setTypeQuery(Boolean value) {
138        this.typeQuery = value;
139    }
140
141    /**
142     * Gets the value of the typeBean property.
143     * 
144     * @return
145     *     possible object is
146     *     {@link Boolean }
147     *     
148     */
149    public Boolean isTypeBean() {
150        return typeBean;
151    }
152
153    /**
154     * Sets the value of the typeBean property.
155     * 
156     * @param value
157     *     allowed object is
158     *     {@link Boolean }
159     *     
160     */
161    public void setTypeBean(Boolean value) {
162        this.typeBean = value;
163    }
164
165    /**
166     * Gets the value of the typeKey property.
167     * 
168     * @return
169     *     possible object is
170     *     {@link Boolean }
171     *     
172     */
173    public Boolean isTypeKey() {
174        return typeKey;
175    }
176
177    /**
178     * Sets the value of the typeKey property.
179     * 
180     * @param value
181     *     allowed object is
182     *     {@link Boolean }
183     *     
184     */
185    public void setTypeKey(Boolean value) {
186        this.typeKey = value;
187    }
188
189    /**
190     * Gets the value of the typeManyId property.
191     * 
192     * @return
193     *     possible object is
194     *     {@link Boolean }
195     *     
196     */
197    public Boolean isTypeManyId() {
198        return typeManyId;
199    }
200
201    /**
202     * Sets the value of the typeManyId property.
203     * 
204     * @param value
205     *     allowed object is
206     *     {@link Boolean }
207     *     
208     */
209    public void setTypeManyId(Boolean value) {
210        this.typeManyId = value;
211    }
212
213}