01: /*
02: * @(#) Close 1.0 02/08/01
03: */
04:
05: package org.smartlib.pool.core;
06:
07: import java.sql.SQLException;
08:
09: /**
10: * This interface is implemented by SmartStatement, SmartPreparedStatement
11: * and SmartCallableStatement. This allows the SmartStament,
12: * SmartPreparedStatement, and SmartCallableStatement to be closed through
13: * this generic interface when auto-close is enabled.
14: *
15: *
16: * @author Sachin Shekar Shetty
17: * @version 1.0, 02/08/01
18: *
19: */
20:
21: public interface Close {
22:
23: /**
24: * This method closes the Object. Any further invoking of this object would
25: * result in an exception.
26: *
27: * @exception SQLException
28: */
29: public void close() throws SQLException;
30:
31: /**
32: * This method returns true if the Object is already closed
33: *
34: * @return true if the Object is already closed
35: *
36: * @exception SQLException
37: */
38: public boolean isClosed() throws SQLException;
39:
40: }
|