Lookup Column Class

I'm looking for a way to get the class name of a class in a class. I've got a class that has a class name and a class name. In the bank would only be a column, this would avoid and much consumption of querys in our case, as I already commented with Wagner on skype