Last updated September 17, 2009 20:01, by ejoftheweb
Feedicon  

Transaction

The Transaction object is the one that does all the work in Boox.

To create a Transaction, call its constructor which takes six arguments:

You can then call its post() method, which returns a long, the TransactionID of the transaction if the posting was successful, or -1 if it failed. The usual reason for a transaction to fail is that the Clerk doesn't have the right Permission for the accounts in question; you can test beforehand by calling the checkPostable() method, which returns a boolean.

Reversing a Transaction

Once a Transaction has been posted, it's committed to the ledgers and can't be unposted. However, you can call its reverse() method which returns an equal and opposite Transaction, which when posted will undo the effects of the original posting but not erase all traces.

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close