<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getAll(cls, where=None, orderBy=None):
 """Retrieve all the objects. If a list of ``where`` clauses are given, they will be AND-ed and will limit the search. This will not load everything out from the database, but will create a large amount of objects with only the ID inserted. The data will be loaded from the objects when needed by the regular load()-autocall. """

        ids = cls.getAllIDs(where, orderBy=orderBy)
        # Instansiate a lot of them
        if len(cls._sqlPrimary) > 1:
            return [cls(*id) for id in ids]
        else:
            return [cls(id) for id in ids]