Originally posted by Cory Max:
Gregg Bolinger: It seems as if your classes are private. How exactly does this work? Is that a type-o or am I missing something?
Those are only the stored procedure classes which happen to be inner classes of a public DAO class. DAO methods such as:
public List<Sport> getSports();
actually use the StoredProcedure class. I could have made them anonymous inner classes to the getSports method but that gets nasty and there are more than the one method that might use a specific stored procedure class. But since they are confined to usage within the single DAO (no other DAO needs to GetSports other than the SportDAO) they are private inner classes.
That said, making them each their own public class outside of the DAO class is perfectly valid as well. Its just preference.