Some useful functions for those of you that would like to make Java look more like SQL