KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > jdbc > core > ParameterDisposer


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.jdbc.core;
18
19 /**
20  * Interface to be implemented by objects that can close resources
21  * allocated by parameters like SqlLobValues.
22  *
23  * <p>Typically implemented by PreparedStatementCreators and
24  * PreparedStatementSetters that support DisposableSqlTypeValue
25  * objects (e.g. SqlLobValue) as parameters.
26  *
27  * @author Thomas Risberg
28  * @author Juergen Hoeller
29  * @since 1.1
30  * @see PreparedStatementCreator
31  * @see PreparedStatementSetter
32  * @see DisposableSqlTypeValue
33  * @see org.springframework.jdbc.core.support.SqlLobValue
34  */

35 public interface ParameterDisposer {
36
37     /**
38      * Close the resources allocated by parameters that the implementing
39      * object holds, for example in case of a DisposableSqlTypeValue
40      * (like a SqlLobValue).
41      * @see DisposableSqlTypeValue#cleanup
42      * @see org.springframework.jdbc.core.support.SqlLobValue#cleanup
43      */

44     public void cleanupParameters();
45
46 }
47
Popular Tags