/hippo/src/main/webapp/ext/src/direct/Transaction.js

http://hdbc.googlecode.com/ · JavaScript · 32 lines · 17 code · 2 blank · 13 comment · 0 complexity · 0424d22b28fcb0605669489ed5d27aa5 MD5 · raw file

  1. /*!
  2. * Ext JS Library 3.0.0
  3. * Copyright(c) 2006-2009 Ext JS, LLC
  4. * licensing@extjs.com
  5. * http://www.extjs.com/license
  6. */
  7. /**
  8. * @class Ext.Direct.Transaction
  9. * @extends Object
  10. * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>
  11. * @constructor
  12. * @param {Object} config
  13. */
  14. Ext.Direct.Transaction = function(config){
  15. Ext.apply(this, config);
  16. this.tid = ++Ext.Direct.TID;
  17. this.retryCount = 0;
  18. };
  19. Ext.Direct.Transaction.prototype = {
  20. send: function(){
  21. this.provider.queueTransaction(this);
  22. },
  23. retry: function(){
  24. this.retryCount++;
  25. this.send();
  26. },
  27. getProvider: function(){
  28. return this.provider;
  29. }
  30. };