public void close() {   if ( statementMap.size() > 0 ) { logger.logp( Level.WARNING, className, "close", statementMap.size() + " statements still active.");  statementMap.clear(); }
public void close( ) {    if ( statementMap.size( ) > 0 ) { Iterator keySet = statementMap.keySet( ).iterator( ); while ( keySet.hasNext( ) ) { PreparedStatement stmt = (PreparedStatement) keySet.next( ); try { stmt.close( ); } catch ( DataException e ) { logger.logp( Level.FINE, className, "close", "Exception at PreparedStatement.close()", e ); } }  statementMap.clear( ); }
    public void close()    {    	// At this time all statements should have been closed    	// Any remaining statement indicate resource leak, or obnormal shtudown    	if ( statementMap.size() > 0 )    	{    		logger.logp( Level.WARNING, className, "close",    				statementMap.size() + " statements still active.");    		statementMap.clear();    	}    	// Close all open connections    	Iterator it = odaConnections.iterator();    	while ( it.hasNext() )    	{    		CacheConnection c = (CacheConnection) (it.next());    		    		try			{    			c.odaConn.close();			}    		catch ( DataException e ) 			{    			logger.logp( Level.FINE, className, "close",    				 "Exception at Connection.close()", e );			}    	}        odaConnections.clear();            }