View Javadoc

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