com.orindasoft.pub
Interface OracleResourceUser

All Known Implementing Classes:
DmlStatement, QueryStatement

public interface OracleResourceUser

An interface that can be inplemented by objects that tend to use up cursors and other oracle resources. All the objects in a class that implement this interface can be added to a vector or a similer data structure. When the time comes to free Oracle resources the class can then iterate through the vector of OracleResourceUser and get them to free their resources.

See OracleResourceUser


(c) Copyright 2003 - 2012 Orinda Software Ltd

Version:
6.0
Author:
Orinda Software

Method Summary
 boolean hasResources()
          Used to tell if the object is using Oracle resources.
 boolean releaseResources()
          Used to tell an object to release its Oracle resources.
 

Method Detail

hasResources

boolean hasResources()
Used to tell if the object is using Oracle resources.

Returns:
true if the objects holds an open PreparedStatement, ResultSet or similer resource.

releaseResources

boolean releaseResources()
Used to tell an object to release its Oracle resources. This method never throws an exception. If releasing the resource will create problems they should be dealt with by the implementing class, not escalated to the calling class.

Returns:
true if the objects held an open PreparedStatement, ResultSet or similer resource.


Copyright © Orinda Software Ltd 2012Logo