View Javadoc

1   package org.apache.torque.manager;
2   
3   /*
4    * Copyright 2001-2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License")
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import java.io.Serializable;
20  import org.apache.jcs.access.GroupCacheAccess;
21  import org.apache.torque.TorqueException;
22  
23  /***
24   * This class provides a cache for convenient storage of method results
25   *
26   * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
27   * @version $Id: NoOpMethodResultCache.java 239630 2005-08-24 12:25:32Z henning $
28   */
29  public class NoOpMethodResultCache
30      extends MethodResultCache
31  {
32      public NoOpMethodResultCache(GroupCacheAccess cache)
33          throws TorqueException
34      {
35          super();
36      }
37  
38      public void clear()
39      {
40      }
41  
42      protected Object getImpl(MethodCacheKey key)
43      {
44          return null;
45      }
46  
47  
48      protected Object putImpl(MethodCacheKey key, Object value)
49          throws TorqueException
50      {
51          return null;
52      }
53  
54      protected Object removeImpl(MethodCacheKey key)
55          throws TorqueException
56      {
57          return null;
58      }
59  
60  
61      public Object get(Serializable instanceOrClass, String method)
62      {
63          return null;
64      }
65  
66      public Object get(Serializable instanceOrClass, String method,
67                        Serializable arg1)
68      {
69          return null;
70      }
71  
72      public Object get(Serializable instanceOrClass, String method,
73                        Serializable arg1, Serializable arg2)
74      {
75          return null;
76      }
77  
78      public Object get(Serializable instanceOrClass, String method,
79                        Serializable arg1, Serializable arg2,
80                        Serializable arg3)
81      {
82          return null;
83      }
84  
85      public Object get(Serializable[] keys)
86      {
87          return null;
88      }
89  
90      public void put(Object value, Serializable instanceOrClass,  String method)
91      {
92      }
93  
94      public void put(Object value, Serializable instanceOrClass,
95                      String method, Serializable arg1)
96      {
97      }
98  
99      public void put(Object value, Serializable instanceOrClass, String method,
100                     Serializable arg1, Serializable arg2)
101     {
102     }
103 
104     public void put(Object value, Serializable instanceOrClass, String method,
105                     Serializable arg1, Serializable arg2, Serializable arg3)
106     {
107     }
108 
109     public void put(Object value, Serializable[] keys)
110     {
111     }
112 
113 
114     public void removeAll(Serializable instanceOrClass, String method)
115     {
116     }
117 
118 
119     public Object remove(Serializable instanceOrClass, String method)
120     {
121         return null;
122     }
123 
124     public Object remove(Serializable instanceOrClass, String method,
125                          Serializable arg1)
126     {
127         return null;
128     }
129 
130     public Object remove(Serializable instanceOrClass, String method,
131                          Serializable arg1, Serializable arg2)
132     {
133         return null;
134     }
135 
136     public Object remove(Serializable instanceOrClass, String method,
137                          Serializable arg1, Serializable arg2,
138                          Serializable arg3)
139     {
140         return null;
141     }
142 
143     public Object remove(Serializable[] keys)
144     {
145         return null;
146     }
147 }