JdbcCallableStatementHandle (Bitronix Transaction Manager :: Core 2.1.4 API)
Date: 2013-09-15

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## bitronix.tm.resource.jdbc
Class JdbcCallableStatementHandle

    java.lang.Object
      bitronix.tm.resource.jdbc.BaseProxyHandlerClass
          bitronix.tm.resource.jdbc.JdbcCallableStatementHandle

All Implemented Interfaces:
  InvocationHandler

    public class JdbcCallableStatementHandle

extends BaseProxyHandlerClass

CallableStatement `Statement` wrapper.

This class is a proxy handler for a CallableStatement. It does not implement the CallableStatement interface or extend a class directly, but you methods implemented here will override those of the underlying delegate. Simply implement a method with the same signature, and the local method will be called rather than the delegate.

Author:
  brettw

Constructor Summary
`JdbcCallableStatementHandle(CallableStatement delegate, JdbcPooledConnection pooledConnection)`

Method Summary
`void` | `close()`
`Object` | `getProxiedDelegate()` Must be implemented by the sub-class of this class.
`boolean` | `isWrapperFor(Class<?> iface)`
`
`<T> T`
` | `unwrap(Class<T> iface)`

Methods inherited from class bitronix.tm.resource.jdbc.BaseProxyHandlerClass
`invoke`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JdbcCallableStatementHandle

    public JdbcCallableStatementHandle(CallableStatement delegate,
                                       JdbcPooledConnection pooledConnection)

Method Detail

### getProxiedDelegate

    public Object getProxiedDelegate()
                              throws Exception

  Description copied from class: `BaseProxyHandlerClass`
  Must be implemented by the sub-class of this class. This method should return the "true" object to be delegated to in the case that the method is not overridden by the sub-class.

  Specified by:
    `getProxiedDelegate` in class `BaseProxyHandlerClass`
  Returns:
    the true delegate object
  Throws:
    `Exception` - can throw any exception if desired

### isWrapperFor

    public boolean isWrapperFor(Class<?> iface)
                         throws SQLException

  Throws:
    `SQLException`

### unwrap

    public <T> T unwrap(Class<T> iface)
             throws SQLException

  Throws:
    `SQLException`

### close

    public void close()
               throws SQLException

  Throws:
    `SQLException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Bitronix Software. All Rights Reserved.