db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer StatementManager.java
Date Sun, 09 Mar 2003 15:38:46 GMT
brj         2003/03/09 07:38:46

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        StatementManager.java
  Log:
  removed unused private method
  
  Revision  Changes    Path
  1.24      +1 -35     db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java
  
  Index: StatementManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/StatementManager.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- StatementManager.java	2 Mar 2003 09:11:57 -0000	1.23
  +++ StatementManager.java	9 Mar 2003 15:38:46 -0000	1.24
  @@ -746,38 +746,4 @@
   		return broker.serviceBrokerHelper().getNonKeyValues(cld, obj);
   	}
   
  -	/**
  -	 * MBAIRD: I would prefer to remove statement caching completely, but instead we
  -	 * deal with edge cases.
  -	 */
  -	private void closeIfNotCached(Statement stmt)
  -	{
  -		boolean doClose = true;
  -		synchronized (statementTable)
  -		{
  -			for (Iterator it = statementTable.values().iterator(); it.hasNext();)
  -			{
  -				StatementsForClassIF sfc = (StatementsForClassIF) it.next();
  -				if (sfc != null)
  -				{
  -					if (sfc.isCached(stmt))
  -					{
  -						doClose = false;
  -						break;
  -					}
  -				}
  -			}
  -		}
  -		if (doClose)
  -		{
  -			try
  -			{
  -				stmt.close();
  -			}
  -			catch (SQLException ignored)
  -			{
  -				LoggerFactory.getDefaultLogger().warn("closing statement had error: " + ignored.getMessage());
  -			}
  -		}
  -	}
   }
  
  
  

Mime
View raw message