I am improving my default DAO implementation class and I found with this question:
protected Order getOrderAsc(SingularAttribute sa)
protected Order getOrderDesc(SingularAttribute sa)
or
Order getOrder(SingularAttribute sa, boolean asc)
Is it any pattern design for this?, to take in consideration, there are no more possible values (in this case) for orders.
Aucun commentaire:
Enregistrer un commentaire