org.eclipse.emf.cdo.server.db
Interface IPreparedStatementCache


public interface IPreparedStatementCache

Caches JDBC statements according to given reuse probabilities.

Since:
2.0
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.

Nested Class Summary
static class IPreparedStatementCache.ReuseProbability
          An enum for the degree of probability to which a prepared statement is reused later on.
 
Method Summary
 PreparedStatement getPreparedStatement(String sql, IPreparedStatementCache.ReuseProbability reuseProbability)
           
 void releasePreparedStatement(PreparedStatement ps)
           
 void setConnection(Connection connection)
           
 

Method Detail

setConnection

void setConnection(Connection connection)

getPreparedStatement

PreparedStatement getPreparedStatement(String sql,
                                       IPreparedStatementCache.ReuseProbability reuseProbability)

releasePreparedStatement

void releasePreparedStatement(PreparedStatement ps)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.