I have a class defined:
Code:
class Transaction{
private int _id;
private int _parent;
private int _account;
private double _amount;
//I'm not going to show them all here for space reasons, but
//I do have all the "setters", "getters" & constructors etc that I need
}
Then I have a hashtable that has all the Transaction objects. I'm trying to figure out a way to search through the Hashtable and return all the transactions with "account" = X (X could be any integer).
Could someone offer some advice as to how I can accomplish this? or if you have a better solution, I'm open to that as well. This app is still in its infancy.
TIA!
P.S. I meant to mention that I originally developed this setup based on my experiences with PHP and MySQL. But it dawned on me last night that I don't have the same search capabiites here. And no--I don't want to connect to the MySQL server to do the searches.