001: package org.apache.torque.manager;
002:
003: /*
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021:
022: import java.io.Serializable;
023: import org.apache.jcs.access.GroupCacheAccess;
024: import org.apache.torque.TorqueException;
025:
026: /**
027: * This class provides a cache for convenient storage of method results
028: *
029: * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
030: * @version $Id: NoOpMethodResultCache.java 473821 2006-11-11 22:37:25Z tv $
031: */
032: public class NoOpMethodResultCache extends MethodResultCache {
033: public NoOpMethodResultCache(GroupCacheAccess cache)
034: throws TorqueException {
035: super ();
036: }
037:
038: public void clear() {
039: }
040:
041: protected Object getImpl(MethodCacheKey key) {
042: return null;
043: }
044:
045: protected Object putImpl(MethodCacheKey key, Object value)
046: throws TorqueException {
047: return null;
048: }
049:
050: protected Object removeImpl(MethodCacheKey key)
051: throws TorqueException {
052: return null;
053: }
054:
055: public Object get(Serializable instanceOrClass, String method) {
056: return null;
057: }
058:
059: public Object get(Serializable instanceOrClass, String method,
060: Serializable arg1) {
061: return null;
062: }
063:
064: public Object get(Serializable instanceOrClass, String method,
065: Serializable arg1, Serializable arg2) {
066: return null;
067: }
068:
069: public Object get(Serializable instanceOrClass, String method,
070: Serializable arg1, Serializable arg2, Serializable arg3) {
071: return null;
072: }
073:
074: public Object get(Serializable[] keys) {
075: return null;
076: }
077:
078: public void put(Object value, Serializable instanceOrClass,
079: String method) {
080: }
081:
082: public void put(Object value, Serializable instanceOrClass,
083: String method, Serializable arg1) {
084: }
085:
086: public void put(Object value, Serializable instanceOrClass,
087: String method, Serializable arg1, Serializable arg2) {
088: }
089:
090: public void put(Object value, Serializable instanceOrClass,
091: String method, Serializable arg1, Serializable arg2,
092: Serializable arg3) {
093: }
094:
095: public void put(Object value, Serializable[] keys) {
096: }
097:
098: public void removeAll(Serializable instanceOrClass, String method) {
099: }
100:
101: public Object remove(Serializable instanceOrClass, String method) {
102: return null;
103: }
104:
105: public Object remove(Serializable instanceOrClass, String method,
106: Serializable arg1) {
107: return null;
108: }
109:
110: public Object remove(Serializable instanceOrClass, String method,
111: Serializable arg1, Serializable arg2) {
112: return null;
113: }
114:
115: public Object remove(Serializable instanceOrClass, String method,
116: Serializable arg1, Serializable arg2, Serializable arg3) {
117: return null;
118: }
119:
120: public Object remove(Serializable[] keys) {
121: return null;
122: }
123: }
|