Package net.sf.hajdbc.durability

Examples of net.sf.hajdbc.durability.InvokerEventImpl


        {
          InvokerKey key = entry.getKey();
          Map<String, InvokerEvent> invokers = result.get(new InvocationEventImpl(txIdFactory.deserialize(key.getTransactionId()), Durability.Phase.values()[key.getPhase()], null));
          if (invokers != null)
          {
            InvokerEvent invoker = new InvokerEventImpl(txIdFactory.deserialize(key.getTransactionId()), Durability.Phase.values()[key.getPhase()], key.getDatabaseId());
            byte[] value = entry.getValue();
            if (value.length > 0)
            {
              invoker.setResult(Objects.<InvokerResult>deserialize(value));
            }
            invokers.put(key.getDatabaseId(), invoker);
          }
        }
        return null;
View Full Code Here


             
              Map<String, InvokerEvent> invokers = map.get(new InvocationEventImpl(txId, phase, null));
              if (invokers != null)
              {
                String databaseId = cursor.getString(DATABASE_COLUMN);
                InvokerEvent event = new InvokerEventImpl(txId, phase, databaseId);
               
                if (!cursor.isNull(RESULT_COLUMN))
                {
                  byte[] result = cursor.getBlobAsArray(RESULT_COLUMN);
                  event.setResult(Objects.<InvokerResult>deserialize(result));
                }

                invokers.put(databaseId, event);
              }
            }
View Full Code Here

    return new Invoker<Z, D, T, R, E>()
    {
      @Override
      public R invoke(D database, T object) throws E
      {
        InvokerEvent event = new InvokerEventImpl(transactionId, phase, database.getId());
       
        listener.beforeInvoker(event);
       
        try
        {
          R result = invoker.invoke(database, object);
         
          event.setResult(new InvokerResultImpl(result));
         
          return result;
        }
        catch (Exception e)
        {
          event.setResult(new InvokerResultImpl(e));
         
          throw exceptionFactory.createException(e);
        }
        finally
        {
View Full Code Here

           
            if (invokers != null)
            {
              String databaseId = resultSet.getString(3);
             
              InvokerEvent event = new InvokerEventImpl(txId, phase, databaseId);
             
              byte[] bytes = resultSet.getBytes(4);
             
              if (!resultSet.wasNull())
              {
                event.setResult(Objects.<InvokerResult>deserialize(bytes));
              }

              invokers.put(databaseId, event);
            }
          }
View Full Code Here

        {
          InvokerKey key = entry.getKey();
          Map<String, InvokerEvent> invokers = result.get(new InvocationEventImpl(txIdFactory.deserialize(key.getTransactionId()), Durability.Phase.values()[key.getPhase()], null));
          if (invokers != null)
          {
            InvokerEvent invoker = new InvokerEventImpl(txIdFactory.deserialize(key.getTransactionId()), Durability.Phase.values()[key.getPhase()], key.getDatabaseId());
            byte[] value = entry.getValue();
            if (value.length > 0)
            {
              invoker.setResult(Objects.<InvokerResult>deserialize(value));
            }
            invokers.put(key.getDatabaseId(), invoker);
          }
        }
        return null;
View Full Code Here

           
            if (invokers != null)
            {
              String databaseId = resultSet.getString(3);
             
              InvokerEvent event = new InvokerEventImpl(txId, phase, databaseId);
             
              byte[] bytes = resultSet.getBytes(4);
             
              if (!resultSet.wasNull())
              {
                event.setResult(Objects.<InvokerResult>deserialize(bytes));
              }

              invokers.put(databaseId, event);
            }
          }
View Full Code Here

           
            if (invokers != null)
            {
              String databaseId = resultSet.getString(3);
             
              InvokerEvent event = new InvokerEventImpl(txId, phase, databaseId);
             
              byte[] bytes = resultSet.getBytes(4);
             
              if (!resultSet.wasNull())
              {
                event.setResult(Objects.<InvokerResult>deserialize(bytes));
              }

              invokers.put(databaseId, event);
            }
          }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.durability.InvokerEventImpl

Copyright © 2018 www.massapicom. 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.