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.global_variables;
17  
18  import org.apache.ibatis.cache.impl.PerpetualCache;
19  
20  public class CustomCache extends PerpetualCache {
21  
22    private String stringValue;
23    private Integer integerValue;
24    private long longValue;
25  
26    public CustomCache(String id) {
27      super(id);
28    }
29  
30    public String getStringValue() {
31      return stringValue;
32    }
33  
34    public void setStringValue(String stringValue) {
35      this.stringValue = stringValue;
36    }
37  
38    public Integer getIntegerValue() {
39      return integerValue;
40    }
41  
42    public void setIntegerValue(Integer integerValue) {
43      this.integerValue = integerValue;
44    }
45  
46    public long getLongValue() {
47      return longValue;
48    }
49  
50    public void setLongValue(long longValue) {
51      this.longValue = longValue;
52    }
53  
54  }