KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > smartlib > pool > core > Close


1 /*
2  * @(#) Close 1.0 02/08/01
3  */

4
5 package org.smartlib.pool.core;
6
7 import java.sql.SQLException JavaDoc;
8
9
10 /**
11  * This interface is implemented by SmartStatement, SmartPreparedStatement
12  * and SmartCallableStatement. This allows the SmartStament,
13  * SmartPreparedStatement, and SmartCallableStatement to be closed through
14  * this generic interface when auto-close is enabled.
15  *
16  *
17  * @author Sachin Shekar Shetty
18  * @version 1.0, 02/08/01
19  *
20  */

21
22 public interface Close {
23
24     /**
25      * This method closes the Object. Any further invoking of this object would
26      * result in an exception.
27      *
28      * @exception SQLException
29      */

30     public void close() throws SQLException JavaDoc;
31
32     /**
33      * This method returns true if the Object is already closed
34      *
35      * @return true if the Object is already closed
36      *
37      * @exception SQLException
38      */

39     public boolean isClosed() throws SQLException JavaDoc;
40
41 }
42
Popular Tags