jeudi 15 octobre 2020

Is there some pattern for sequential check of previously input data?

I would like to create some objects with different IDs (for later data base injection). And then I would like to create some class which tests whether ID of current object had already been input in a previous object. If this is the case I stop processing current object and ask to input another ID.

My code doesn't seem very elegant. Is there any pattern for it?

Aucun commentaire:

Enregistrer un commentaire