Package com.alibaba.druid.pool
Class PreparedStatementHolder
- java.lang.Object
-
- com.alibaba.druid.pool.PreparedStatementHolder
-
public final class PreparedStatementHolder extends Object
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Field Summary
Fields Modifier and Type Field Description protected intfetchRowPeakprotected inthitCountprotected intinUseCountDruidPooledPreparedStatement.PreparedStatementKeykeyPreparedStatementstatement
-
Constructor Summary
Constructors Constructor Description PreparedStatementHolder(DruidPooledPreparedStatement.PreparedStatementKey key, PreparedStatement stmt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrementInUseCount()intgetDefaultRowPrefetch()intgetFetchRowPeak()intgetHitCount()intgetInUseCount()intgetRowPrefetch()voidincrementHitCount()voidincrementInUseCount()booleanisEnterOracleImplicitCache()booleanisInUse()booleanisPooling()voidsetDefaultRowPrefetch(int defaultRowPrefetch)voidsetEnterOracleImplicitCache(boolean enterOracleImplicitCache)voidsetFetchRowPeak(int fetchRowPeak)voidsetPooling(boolean pooling)voidsetRowPrefetch(int rowPrefetch)
-
-
-
Field Detail
-
key
public final DruidPooledPreparedStatement.PreparedStatementKey key
-
statement
public final PreparedStatement statement
-
hitCount
protected int hitCount
-
fetchRowPeak
protected int fetchRowPeak
-
inUseCount
protected int inUseCount
-
-
Constructor Detail
-
PreparedStatementHolder
public PreparedStatementHolder(DruidPooledPreparedStatement.PreparedStatementKey key, PreparedStatement stmt)
-
-
Method Detail
-
isEnterOracleImplicitCache
public boolean isEnterOracleImplicitCache()
-
setEnterOracleImplicitCache
public void setEnterOracleImplicitCache(boolean enterOracleImplicitCache)
-
getDefaultRowPrefetch
public int getDefaultRowPrefetch()
-
setDefaultRowPrefetch
public void setDefaultRowPrefetch(int defaultRowPrefetch)
-
getRowPrefetch
public int getRowPrefetch()
-
setRowPrefetch
public void setRowPrefetch(int rowPrefetch)
-
getFetchRowPeak
public int getFetchRowPeak()
-
setFetchRowPeak
public void setFetchRowPeak(int fetchRowPeak)
-
incrementHitCount
public void incrementHitCount()
-
getHitCount
public int getHitCount()
-
isInUse
public boolean isInUse()
-
incrementInUseCount
public void incrementInUseCount()
-
decrementInUseCount
public void decrementInUseCount()
-
getInUseCount
public int getInUseCount()
-
isPooling
public boolean isPooling()
-
setPooling
public void setPooling(boolean pooling)
-
-