View Javadoc
1   /*
2    *    Copyright 2009-2022 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.apache.ibatis.submitted.cache;
17  
18  import java.util.Date;
19  
20  import org.apache.ibatis.cache.impl.PerpetualCache;
21  
22  public class CustomCache extends PerpetualCache {
23  
24    private String stringValue;
25    private Integer integerValue;
26    private int intValue;
27    private Long longWrapperValue;
28    private long longValue;
29    private Short shortWrapperValue;
30    private short shortValue;
31    private Float floatWrapperValue;
32    private float floatValue;
33    private Double doubleWrapperValue;
34    private double doubleValue;
35    private Byte byteWrapperValue;
36    private byte byteValue;
37    private Boolean booleanWrapperValue;
38    private boolean booleanValue;
39    private Date date;
40  
41    public CustomCache(String id) {
42      super(id);
43    }
44  
45    public String getStringValue() {
46      return stringValue;
47    }
48  
49    public void setStringValue(String stringValue) {
50      this.stringValue = stringValue;
51    }
52  
53    public Integer getIntegerValue() {
54      return integerValue;
55    }
56  
57    public void setIntegerValue(Integer integerValue) {
58      this.integerValue = integerValue;
59    }
60  
61    public long getLongValue() {
62      return longValue;
63    }
64  
65    public void setLongValue(long longValue) {
66      this.longValue = longValue;
67    }
68  
69    public int getIntValue() {
70      return intValue;
71    }
72  
73    public void setIntValue(int intValue) {
74      this.intValue = intValue;
75    }
76  
77    public Long getLongWrapperValue() {
78      return longWrapperValue;
79    }
80  
81    public void setLongWrapperValue(Long longWrapperValue) {
82      this.longWrapperValue = longWrapperValue;
83    }
84  
85    public Short getShortWrapperValue() {
86      return shortWrapperValue;
87    }
88  
89    public void setShortWrapperValue(Short shortWrapperValue) {
90      this.shortWrapperValue = shortWrapperValue;
91    }
92  
93    public short getShortValue() {
94      return shortValue;
95    }
96  
97    public void setShortValue(short shortValue) {
98      this.shortValue = shortValue;
99    }
100 
101   public Float getFloatWrapperValue() {
102     return floatWrapperValue;
103   }
104 
105   public void setFloatWrapperValue(Float floatWrapperValue) {
106     this.floatWrapperValue = floatWrapperValue;
107   }
108 
109   public float getFloatValue() {
110     return floatValue;
111   }
112 
113   public void setFloatValue(float floatValue) {
114     this.floatValue = floatValue;
115   }
116 
117   public Double getDoubleWrapperValue() {
118     return doubleWrapperValue;
119   }
120 
121   public void setDoubleWrapperValue(Double doubleWrapperValue) {
122     this.doubleWrapperValue = doubleWrapperValue;
123   }
124 
125   public double getDoubleValue() {
126     return doubleValue;
127   }
128 
129   public void setDoubleValue(double doubleValue) {
130     this.doubleValue = doubleValue;
131   }
132 
133   public Byte getByteWrapperValue() {
134     return byteWrapperValue;
135   }
136 
137   public void setByteWrapperValue(Byte byteWrapperValue) {
138     this.byteWrapperValue = byteWrapperValue;
139   }
140 
141   public byte getByteValue() {
142     return byteValue;
143   }
144 
145   public void setByteValue(byte byteValue) {
146     this.byteValue = byteValue;
147   }
148 
149   public Boolean getBooleanWrapperValue() {
150     return booleanWrapperValue;
151   }
152 
153   public void setBooleanWrapperValue(Boolean booleanWrapperValue) {
154     this.booleanWrapperValue = booleanWrapperValue;
155   }
156 
157   public boolean isBooleanValue() {
158     return booleanValue;
159   }
160 
161   public void setBooleanValue(boolean booleanValue) {
162     this.booleanValue = booleanValue;
163   }
164 
165   public Date getDate() {
166     return date;
167   }
168 
169   public void setDate(Date date) {
170     this.date = date;
171   }
172 
173 }