KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > monitor > callflow > DbAccessObject


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * DbAccessObject.java
26  *
27  * Created on July 11, 2005, 10:38 AM
28  */

29
30 package com.sun.enterprise.admin.monitor.callflow;
31
32 import java.sql.Connection JavaDoc;
33 import java.util.List JavaDoc;
34 import java.util.Map JavaDoc;
35
36 /**
37  *
38  * Database Access Object to handle table creates, table deletes and table
39  * updates
40  * @author Harpreet Singh
41  */

42 public interface DbAccessObject {
43     
44    /**
45      * Enables the DB Access Object. It acquires connection to the database
46      * It creates the required tables in the database. If the tables are present
47      * it will not drop them.
48      */

49     public boolean enable ();
50
51     public boolean disable();
52
53     public boolean clearData();
54     
55     public boolean insert(TransferObject[] transferObject);
56         
57     public List JavaDoc<Map JavaDoc<String JavaDoc, String JavaDoc>> getRequestInformation();
58     
59     public List JavaDoc<Map JavaDoc<String JavaDoc, String JavaDoc>> getCallStackInformation (String JavaDoc requestId);
60     
61     public Map JavaDoc<String JavaDoc, String JavaDoc> getPieInformation (String JavaDoc requestId);
62     
63     public boolean deleteRequestIds (String JavaDoc[] requestIds);
64
65 }
66
Popular Tags