KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > process > CacheReset


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.process;
15
16 import java.sql.*;
17 import java.math.*;
18 import java.net.*;
19
20 import org.compiere.model.*;
21 import org.compiere.util.*;
22
23 /**
24  * Reset Cache
25  *
26  * @author Jorg Janke
27  * @version $Id: CacheReset.java,v 1.1 2003/06/20 14:32:34 jjanke Exp $
28  */

29 public class CacheReset extends SvrProcess
30 {
31     /**
32      * Constructor
33      */

34     public CacheReset()
35     {
36         super();
37         log.debug("CacheReset");
38     } // ExpenseSOrder
39

40
41     /**
42      * Prepare - e.g., get Parameters.
43      */

44     protected void prepare()
45     {
46     } // prepare
47

48
49     /**
50      * Perform process.
51      * @return Message to be translated
52      * @throws Exception
53      */

54     protected String JavaDoc doIt() throws java.lang.Exception JavaDoc
55     {
56         Env.reset(false);
57         return "Cache Reset";
58     } // doIt
59

60 } // CacheReset
61
Popular Tags