I have a class called Parameter that wraps different values including java.sql.Clob
With JDBC4 specification, we have a free()
method that can be called to free resources allocated to Clob
object. I am thinking of making Parameter
class an AutoClosable
and call free()
method inside close()
This works out great but i also want something to enforce or at least hint others that Parameter
is an instance of AutoClosable
Other than documentation is there a way to achieve this? Basically i am looking for something extra that one can do in this situation.