Package org.teiid.adminapi.impl

Examples of org.teiid.adminapi.impl.TransactionMetadata


    Collection<org.teiid.adminapi.Transaction> result = new ArrayList<org.teiid.adminapi.Transaction>(txnSet.size());
    for (TransactionContext transactionContext : txnSet) {
      if (transactionContext.getTransactionType() == Scope.NONE) {
        continue;
      }
      TransactionMetadata txnImpl = new TransactionMetadata();
      txnImpl.setAssociatedSession(transactionContext.getThreadId());
      txnImpl.setCreatedTime(transactionContext.getCreationTime());
      txnImpl.setScope(transactionContext.getTransactionType().toString());
      txnImpl.setId(transactionContext.getTransactionId());
      result.add(txnImpl);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.teiid.adminapi.impl.TransactionMetadata

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.