PreparedStatement and/or
CallableStatement instances on a connection.
| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String[] | |
| private boolean | |
| private boolean | |
| private AtomicInteger | |
| private static ConcurrentHashMap | |
| protected static final String[] | |
| private static final Log | |
| private int | |
| protected static final String[] | |
| private ObjectName | |
| private PooledConnection | |
| protected static final String[] | |
| protected static final String | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| protected StatementCache. | |
| protected StatementCache. | |
| protected Object | createDecorator(Object
The proxy object on which the method that triggered
the creation of the statement was called. proxy, Method The method that was called on the proxy method, Object[] The arguments passed as part of the method call to
the proxy args, Object The statement object that is to be proxied statement, Constructor<?> The constructor for the desired proxy constructor, String The sql of of the statement sql)Overrides org. Creates a proxy for a Statement. |
| public void | disconnected(ConnectionPool
- the connection pool that this connection belongs to parent, PooledConnection - the pooled connection that holds this connection con, boolean - if this connection is finalizing. True means that the pooled connection will not reconnect the underlying connection finalizing)Overrides org. Called when |
| protected ConcurrentHashMap | |
| public AtomicInteger | |
| public int | |
| public int | |
| public String[] | |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Overrides org. Implements java. Gets invoked each time an operation on |
| public boolean | |
| public StatementCache. | |
| public boolean | |
| public void | poolClosed(ConnectionPool
- the pool that is being closed. pool)Overrides org. This method is invoked by a connection pool when the pool is closed. |
| public void | poolStarted(ConnectionPool
- the pool that is being closed. pool)Overrides org. This method is invoked by a connection pool when the pool is first started up, usually when the first connection is requested. |
| public boolean | |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Overrides org. no-op for this interceptor. |
| public void | setProperties(Map<String, PoolProperties.
The properties propertiesOverrides org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties |
| ALL_TYPES | back to summary |
|---|---|
| protected static final String[] ALL_TYPES | |
| cacheCallable | back to summary |
|---|---|
| private boolean cacheCallable | |
| cachePrepared | back to summary |
|---|---|
| private boolean cachePrepared | |
| cacheSize | back to summary |
|---|---|
| private AtomicInteger cacheSize | |
| cacheSizeMap | back to summary |
|---|---|
| private static ConcurrentHashMap<ConnectionPool, AtomicInteger> cacheSizeMap | |
| CALLABLE_TYPE | back to summary |
|---|---|
| protected static final String[] CALLABLE_TYPE | |
| log | back to summary |
|---|---|
| private static final Log log | |
| maxCacheSize | back to summary |
|---|---|
| private int maxCacheSize | |
| NO_TYPE | back to summary |
|---|---|
| protected static final String[] NO_TYPE | |
| oname | back to summary |
|---|---|
| private ObjectName oname | |
| pcon | back to summary |
|---|---|
| private PooledConnection pcon | |
| PREPARED_TYPE | back to summary |
|---|---|
| protected static final String[] PREPARED_TYPE | |
| STATEMENT_CACHE_ATTR | back to summary |
|---|---|
| protected static final String STATEMENT_CACHE_ATTR | |
| types | back to summary |
|---|---|
| private String[] types | |
| StatementCache | back to summary |
|---|---|
| public StatementCache() | |
| cacheStatement | back to summary |
|---|---|
| public boolean cacheStatement(StatementCache. | |
| closeStatement | back to summary |
|---|---|
| public void closeStatement(StatementCache. | |
| createCacheKey | back to summary |
|---|---|
| protected StatementCache. | |
| createCacheKey | back to summary |
|---|---|
| protected StatementCache. | |
| createDecorator | back to summary |
|---|---|
| protected Object createDecorator(Object proxy, Method method, Object[] args, Object statement, Constructor<?> constructor, String sql) throws InstantiationException, IllegalAccessException, InvocationTargetException Overrides org. Doc from org. Creates a proxy for a Statement.
| |
| disconnected | back to summary |
|---|---|
| public void disconnected(ConnectionPool parent, PooledConnection con, boolean finalizing) Overrides org. Doc from org. Called when
| |
| getCache | back to summary |
|---|---|
| protected ConcurrentHashMap | |
| getCacheSize | back to summary |
|---|---|
| public AtomicInteger getCacheSize() Implements org.
| |
| getCacheSizePerConnection | back to summary |
|---|---|
| public int getCacheSizePerConnection() Implements org.
| |
| getMaxCacheSize | back to summary |
|---|---|
| public int getMaxCacheSize() Implements org.
| |
| getTypes | back to summary |
|---|---|
| public String[] getTypes() | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Overrides org. Implements java. Doc from org. Gets invoked each time an operation on
| |
| isCacheCallable | back to summary |
|---|---|
| public boolean isCacheCallable() Implements org.
| |
| isCached | back to summary |
|---|---|
| public StatementCache. | |
| isCachePrepared | back to summary |
|---|---|
| public boolean isCachePrepared() Implements org.
| |
| poolClosed | back to summary |
|---|---|
| public void poolClosed(ConnectionPool pool) Overrides org. Doc from org. This method is invoked by a connection pool when the pool is closed. Interceptor classes can override this method if they keep static variables or other tracking means around. This method is only invoked on a single instance of the interceptor, and not on every instance created.
| |
| poolStarted | back to summary |
|---|---|
| public void poolStarted(ConnectionPool pool) Overrides org. Doc from org. This method is invoked by a connection pool when the pool is first started up, usually when the first connection is requested. Interceptor classes can override this method if they keep static variables or other tracking means around. This method is only invoked on a single instance of the interceptor, and not on every instance created.
| |
| removeStatement | back to summary |
|---|---|
| public boolean removeStatement(StatementCache. | |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Overrides org. Doc from org. no-op for this interceptor. no state is stored.
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Map<String, PoolProperties. Overrides org. Doc from org. Called during the creation of an interceptor The properties can be set during the configuration of an interceptor Override this method to perform type casts between string values and object properties
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv StatementCache. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public StatementCache. | |
| public void |
| key | back to summary |
|---|---|
| pack-priv StatementCache. | |
| CachedStatement | back to summary |
|---|---|
| public CachedStatement(PreparedStatement parent, String sql) | |
| closeInvoked | back to summary |
|---|---|
| public void closeInvoked() Overrides org.
| |
| forceClose | back to summary |
|---|---|
| public void forceClose() | |
| getCacheKey | back to summary |
|---|---|
| public StatementCache. | |
| setCacheKey | back to summary |
|---|---|
| public void setCacheKey(StatementCache. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| args | back to summary |
|---|---|
| private final Object[] args | |
| stmtType | back to summary |
|---|---|
| private final String stmtType | |
| CacheKey | back to summary |
|---|---|
| private CacheKey(String type, Object[] methodArgs) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |