Package net.sf.hajdbc.invocation

Examples of net.sf.hajdbc.invocation.InvocationStrategy.invoke()


         
          try
          {
            InvocationStrategy durabilityStrategy = LocalTransactionContext.this.durability.getInvocationStrategy(strategy, Durability.Phase.COMMIT, LocalTransactionContext.this.transactionId);
           
            return durabilityStrategy.invoke(proxy, invoker);
          }
          finally
          {
            LocalTransactionContext.this.unlock();
          }
View Full Code Here


      {
        InvocationStrategy durabilityStrategy = LocalTransactionContext.this.durability.getInvocationStrategy(strategy, phase, LocalTransactionContext.this.transactionId);
       
        try
        {
          return durabilityStrategy.invoke(proxy, invoker);
        }
        finally
        {
          LocalTransactionContext.this.unlock();
        }
View Full Code Here

            {
              lock.lock();
             
              try
              {
                return strategy.invoke(proxy, invoker);
              }
              catch (Exception e)
              {
                lock.unlock();
View Full Code Here

            @Override
            public <Z, D extends Database<Z>, T, R, E extends Exception> SortedMap<D, R> invoke(ProxyFactory<Z, D, T, E> proxy, Invoker<Z, D, T, R, E> invoker) throws E
            {
              try
              {
                return durabilityStrategy.invoke(proxy, invoker);
              }
              finally
              {
                if (lock != null)
                {
View Full Code Here

    InvocationStrategy strategy = this.getInvocationStrategy(proxy, method, parameters);

    Invoker<Z, D, T, R, E> invoker = this.getInvoker(proxy, method, parameters);

    this.logger.log(Level.TRACE, "Invoking {0} using {1}", method, strategy);
    SortedMap<D, R> results = strategy.invoke(this.proxyFactory, invoker);

    this.postInvoke(invoker, proxy, method, parameters);
   
    @SuppressWarnings("unchecked")
    ProxyFactoryFactory<Z, D, T, E, R, ? extends Exception> factory = (ProxyFactoryFactory<Z, D, T, E, R, ? extends Exception>) this.getProxyFactoryFactory(proxy, method, parameters);
View Full Code Here

    InvocationStrategy strategy = this.getInvocationStrategy(proxy, method, parameters);

    Invoker<Z, D, T, R, E> invoker = this.getInvoker(proxy, method, parameters);

    this.logger.log(Level.TRACE, "Invoking {0} using {1}", method, strategy);
    SortedMap<D, R> results = strategy.invoke(this.proxyFactory, invoker);

    this.postInvoke(invoker, proxy, method, parameters);
   
    @SuppressWarnings("unchecked")
    ProxyFactoryFactory<Z, D, T, E, R, ? extends Exception> factory = (ProxyFactoryFactory<Z, D, T, E, R, ? extends Exception>) this.getProxyFactoryFactory(proxy, method, parameters);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.